Calling mover.remove() should be enough.
The row in the database is deleted and the object is removed from the
collection.
You don't have to remove the object from the collection first.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996687#3996687
Reply to
The correct way to remove an item from the OneToMany relation is as follows:
| @Entity
| public class A
| {
| private CollectionB bees;
| @OneToMany (mappedBy=a)
| public CollectionB getBs()
| {
| return bees;
| }
| public void setBs(CollectionB b)
| {
| this. bees = b;