title: How to map join query to non-entity class in JPA?
body: <p>In hibernate </p>
  
  <p>Join queries can be mapped with non-entity class . <a href="https://stackoverflow.com/questions/1873316/how-to-map-a-database-query-into-an-object-in-java/1874777#1874777">How to map a database query into an Object [in Java]?</a></p>
  
  <pre><code>&lt;class name=... select="select A.field_a, B.field_b, ... from A, B, ..."&gt;
  </code></pre>
  
  <p>How can I achieve the same thing in JPA/Hibernate ?</p>