title: Hibernate Return integer value
body: <p>I am new to hibernate . I want to pass 2 column values and want hibernate to return primary key of that table.</p>
  
  <pre><code>String queryString = "select perId from Permission where document.docId=1 and user.id=2";
  return getHibernateTemplate().find(queryString);
  </code></pre>
  
  <p>But this method return List.
  How can i return int value.</p>