title: @OneToMany relationship does not save the primary key of the parent in the children tables
body: <p>Let there be three JPA Entities. A <code>Person</code> and two one-to-many relations to it. When I'm trying to save the Person <code>AD_P_ID</code> and <code>AC_P_ID</code> foreign keys are always null.
  The expected value for these fields is the person Id. What am I doing wrong?</p>
  
  <ol>
  <li><p>Person.java: This contains one to Many relationships with <code>Account</code> and <code>Address</code> Entity classes:</p>
  
  <pre><code>@Entity
  @Table(name = "A2C_PERSON")
  class Person implements Serializable {
  
      private long id;
  
      private List&lt;Account&gt; acs;
  
      private List&lt;Address&gt; ads;
  
      @OneToMany(cascade=CascadeType.ALL, mappedBy = "person")
      public List&lt;Account&gt; getAccount() {
          return this.acs;
      }
  
      @OneToMany(cascade=CascadeType.ALL, mappedBy = "person")
      public List&lt;Address&gt; getAddress() {
          return this.ads;
      }
  }
  </code></pre></li>
  <li><p>Account.java</p>
  
  <pre><code>@Entity
  @Table(name = "A2C_ACCOUNT")
  public class Account implements Serializable {
  
      private long id;
  
      private Person person;
  
      @ManyToOne(cascade=CascadeType.ALL, fetch = FetchType.LAZY)
      @JoinColumn(name = "AC_P_ID")
      public Person getPerson() {
          return this.person;
      }
  }
  </code></pre></li>
  <li><p>Address.java</p>
  
  <pre><code>@Entity
  @Table(name = "A2C_ADDRESS")
  public class Address implements Serializable {
  
      private long id;
  
      private Person person;
  
      @ManyToOne(cascade=CascadeType.ALL,fetch = FetchType.LAZY)
      @JoinColumn(name = "AD_P_ID")
      public Person getPerson() {
          return this.person;
      }
  }
  </code></pre></li>
  </ol>
  
  <p>A code to save the person:</p>
  
  <pre><code>Person p = new Person();
  
  Account ac1 = new Account();
  Account ac2 = new Account();
  List&lt;Account&gt; acList = new ArrayList&lt;&gt;();
  acList.add(ac1);
  acList.add(ac2)
  
  Address ad1 = new Adddress();
  Address ad2 = new Adddress();
  List&lt;Address&gt; adList = new ArrayList&lt;&gt;();
  acList.add(ad1);
  acList.add(ad2)
  
  p.setAcs(acList);
  p.setAds(adList);
  
  personRepo.save(p);
  </code></pre>