title: Hibernate criteria: Joining table without a mapped association
body: <p>I'd like to use Hibernate's criteria api to formulate a particular query that joins two entities. Let's say I have two entities, Pet and Owner with a owner having many pets, but crucially that association is not mapped in the Java annotations or xml.</p>
  
  <p>With hql, I could select owners that have a pet called 'fido' by specifying the join in the query (rather than adding a set of pets to the owner class).</p>
  
  <p>Can the same be done using hibernate criteria? If so how?</p>
  
  <p>Thanks,
  J</p>