title: Can't delete element from @OneToMany collection
body: <p>i have an entity <strong>Entity1</strong> that have <strong>one to many</strong> relation with <strong>Entity2</strong>  as follows:</p>
  
  <p><strong>1- Entity1:</strong></p>
  
  <pre><code>@Entity
  @Table(name = "Entity1", catalog = "mydb")
  public class Entity1 implements java.io.Serializable {
  
    @OneToMany(fetch = FetchType.LAZY, mappedBy = "entity1", cascade = javax.persistence.CascadeType.ALL)
    @OrderBy("id")
    private Set&lt;Entity2&gt; collection = new HashSet&lt;Entity2&gt;(
              0);
  
  }
  </code></pre>
  
  <p><strong>2- Entity2:</strong> (equals and hashcode method overridden) </p>
  
  <pre><code>@Entity
  @Table(name = "entity2", catalog = "advertisedb")
  public class Entity2 implements java.io.Serializable {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "pkid", unique = true, nullable = false)
      @Basic(fetch = FetchType.EAGER)
      private long id;
  
      @ManyToOne(fetch = FetchType.EAGER)
      @JoinColumn(name = "fk_entity1", nullable = false)
      private Entity1 entity1;
  
      @ManyToOne(fetch = FetchType.EAGER)
      @JoinColumn(name = "apid", nullable = false)
      private Entity3 entity3;
  
  }
  </code></pre>
  
  <p><strong>3- Here's how i am removing the entity from the collection:</strong></p>
  
  <pre><code>    entity1Obj.getEntity2().remove(entity2);
      log.debug("size after remove: "+ entity1Obj.getEntity2().size()); // size decreases correctly, so the entity is removed from the collection
      entity1Dao.updateEntity1(entity1);
  </code></pre>
  
  <p><strong>4- DAO method:</strong></p>
  
  <pre><code>   public void updateEntity1(Entity1 entity1) {
          getCurrentSession().update(getCurrentSession().merge(entity1));
      }
  </code></pre>
  
  <p><strong>Problem:</strong> what i get in the console, is a select query for the entity2 that should be removed, and no delete query, and nothing is getting deleted.</p>
  
  <p>please advise how to fix this issue.</p>