title: Hibernate query for selecting multiple values
body: <p>In hibernate I can do following</p>
  
  <pre><code>Query q = session.createQuery("from Employee as e);
  List&lt;Employee&gt; emps = q.list();
  </code></pre>
  
  <p>Now if I want to fetch int and String how can I do it?</p>
  
  <pre><code>Query q = session.createQuery(""SELECT E.firstName,E.ID FROM Employee E";
  List ans = q.list();
  </code></pre>
  
  <p>Now what will be the structure of list?</p>