title: Select non-entities with JPA?
body: <p>Is it possible with JPA to retrieve a instances of a non-entity classes with native queries?<br>
  I have a non-entity class that wraps two entities:</p>
  
  <pre><code>class Wrap{
    Entity1 ent1;
    Entity2 ent2
  }
  @Entity
  class Entity1{
    ...
  }
  @Entity
  class Entity2{
    ...
  }
  </code></pre>
  
  <p>How can I do something like that?  </p>
  
  <pre><code>Query q = entityManager.createNativeQuery("native select here");
  List&lt;Wrap&gt; list = q.getResultList();
  </code></pre>