title: orphanRemoval not working when one-to-many is the owning side?
body: <p>I have the following entities:</p>
  
  <pre><code>public class Parent {
  
      @Id
      @Column(name = "parentID")
      private Long parentID; 
  
      @OneToMany(mappedBy = "parent")
      private Set&lt;Child&gt; childs;
  }
  
  public class Child {
  
      @Id
      private long id;
  
      @ManyToOne
      @JoinColumn(name = "parentID", referencedColumnName = "parentID")
      private Parent parent;
  }
  </code></pre>
  
  <p>I tried to remove the parent and I got an error message about the FK in the child if I understand it correctly it was because the child was the <strong>owner</strong>.</p>
  
  <p>I then changed it to the following to make Parent the owner:</p>
  
  <pre><code>@OneToMany(orphanRemoval = true)
  @JoinColumn(name = "parentID")
  private Set&lt;Child&gt; childs;
  </code></pre>
  
  <p>When I remove the parent hibernate does an update: </p>
  
  <pre><code>update child set parentID=null where parentID=?
  </code></pre>
  
  <p>But the Child still exists in the database, with the parentID as null. I thought orphanRemoval would solve this but it does not. Why is that?</p>
  
  <p>(It is not possible to change the underlying database structure).</p>