title: JPA: Perform a query on multiple tables
body: <p>Im new to using JPA in java and im curious how to perform a multi table query using JPA.  I understand you create a class that is designated as an entity to represent objects in a database however if I want to do advanced multi table queries using @query do I need to create a second class to represent the other table as an entity?  </p>
  
  <p>For example a single @query </p>
  
  <pre><code>@Query("select * from Stores") 
  </code></pre>
  
  <p>Where Stores is a table in my database that also has an associated entity class in my code.</p>
  
  <p>I want to do something like
  @Query("select * from Stores, Owner where Store.id = Owner.id)
  where Owner is just a table in a database and does not have an associated entity</p>
  
  <p>All help is appreciated.</p>