title: hibernate query result to a predefined object?
body: <p>It is possible in hibernate to get a result of a query to a mapped db object. </p>
  
  <p>Is it possible to create a non-persistent object and get the query result into this object?</p>
  
  <p>for example</p>
  
  <pre><code>session.createSQLQuery(select a,b,c from table).list.addEntity(myclass.class)
  </code></pre>
  
  <p>if myclass is:</p>
  
  <pre><code>public class myclass{
  
  private int a;
  
  private int b;
  
  private int c; 
  .
  .
  .
  }
  </code></pre>