title: JPQL inner join and left join
body: <p>I know what joins are and how to use them in plain SQL but i can't find any explanation of internet to query object with relations. I use entity,getList.size() to query objects that has oneToMany or ManyToMany associations with my entity. I'm wondering is there any way to query object with all his relations.</p>
  
  <pre><code>public Person
  @OneToMany
  List&lt;Cat&gt;
  @ManyToMany
  List&lt;DormRoom&gt;
  </code></pre>
  
  <p>what is do to get all object is;</p>
  
  <pre><code>Person p=PersonDAO.getWithId(1L);
  p.getCats.size();
  p.getsDormRooms.size();
  </code></pre>
  
  <p>Now i'm wondering the get fully evulated object with JPQL, CriteriaBuilder and maybe with QueryDSL.</p>