I've a Set in my Parent entity as below:
Class Parent {
@OneToMany(mappedBy = parent, cascade = CasacadeType.ALL)
Set<Child> children;
}
Class Child {
@Column(nullable=false)
@ManyToOne
Parent parent;
}
Now event if I do a remove() operation on the Set for one of its element it doesn't actually get removed.
See Question&Answers more detail:os