title: left outer join needed on jpa / hibernate entity
body: <p>I have two tables</p>
  
  <pre><code>Parent
  id| guid | value1
  
  Child
  id| parentguid| childguid | value2
  
  foreign key Child(parentguid) references Parent(guid)
  foreign key Child(childguid) references Parent(guid)
  </code></pre>
  
  <p>i need a left outer join</p>
  
  <pre><code>select p.id, p.guid , p.value1 , c.parentguid, c.value2 from Parent p left outer join Child c on p.guid = c.childguid;
  </code></pre>
  
  <p>how can I write the hibernate / jpa entity which gives me such. </p>
  
  <pre><code>class Parent{
  Long id;
  
  @OneToOne
  @JoinColumn("guid")
  Child guid;
  
  String value1;
  }
  
  class Child{
  Long id;
  
  String parentguid;
  
  String childguid;
  
  String value2;
  }
  </code></pre>
  
  <p>Typesafe queries don't provide left outer join -> <a href="http://www.ibm.com/developerworks/library/j-typesafejpa/" rel="nofollow">http://www.ibm.com/developerworks/library/j-typesafejpa/</a></p>