title: Hibernate & EntityManager with joins
body: <p>In my hypothetical I have an annotated User model class. This User model also holds references to two sets:</p>
  
  <ul>
  <li>A set of Pet objects (a Pet object is also an annotated model represented in the data layer)</li>
  <li>A set of Food objects (a Pet object is also an annotated model represented in the data layer)</li>
  </ul>
  
  <p>When I pull the User entity from the database (entityManager.find(User.class, id)) it will automatically fill all the User fields but it obviously wont fill the two sets. </p>
  
  <p>Do I need to do entityManager.createQuery and just use a normal SQL join query then manually create the User object?</p>
  
  <p>Thanks in advance</p>