title: JPA left/right join query
body: <p>I have this structure from entities Aa, Bb, Cc:</p>
  
  <ul>
  <li>Aa has a list of Bb</li>
  <li>Bb has a list of Cc</li>
  </ul>
  
  <p>-</p>
  
  <pre><code>public class Aa{
  @OneToMany   
  List&lt;Bb&gt; listBb;
  }
  
  public class Bb{
  @OneToMany 
  List&lt;Bb&gt; listCc;
  }
  </code></pre>
  
  <p>I would like to create a JPA Criteria API query to pool Aa by an id of C:</p>
  
  <pre><code>public A getAaByCcId(long id) {...}
  </code></pre>
  
  <p>In native sql I would have try left join (twice). How do I do this using JPA?</p>