title: JPA - OneToMany relationship not loading children
body: <p>I am trying to configure this @OneToMany and @ManyToOne relationship but it's simply not working, not sure why. I have done this before on other projects but somehow it's not working with my current configuration, here's the code:</p>
  
  <pre><code>public class Parent {
     @OneToMany(mappedBy = "ex", fetch= FetchType.LAZY, cascade=CascadeType.ALL)
     private List&lt;Child&gt; myChilds;
  
     public List&lt;Child&gt; getMyChilds() {
           return myChilds;
     }
  }
  
  public class Child {
     @Id
     @ManyToOne(fetch=FetchType.LAZY)    
     private Parent ex;
     @Id
     private String a;
     @Id
     private String b;
  
     public Parent getParent(){
           return ex;
     }
  }
  </code></pre>
  
  <p>At first, I thought it could be the triple @Id annotation that was causing the malfunction, but after removing the annotations it still doesn't work. So, if anyone have any idea, I am using EclipseLink 2.0.</p>
  
  <p>I just try to execute the code with some records and it returns s==0 <strong>always</strong>:</p>
  
  <pre><code>Parent p = new Parent();
  Integer s = p.getMyChilds().size();
  </code></pre>
  
  <p>Why?</p>