[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Remove item from CMR

2006-12-28 Thread lafr
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Remove item from CMR

2006-12-22 Thread murtuza52
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;