Joined: Mon Mar 08, 2004 2:24 pm Posts: 13 Location: Tampa, FL, USA
|
I have an object that has a one-to-many relationship with another object. I'm receiving the following exception when trying to save the parent:
net.sf.hibernate.HibernateException: You may not dereference a collection with cascade="all-delete-orphan"
Before I post all of the mapping details, can anyone tell me generally what causes this? Maybe it'll ring a bell and I can run this down myself.
P.S. - When using cascade="all", saving works fine. The reason I switched to "all-delete-orphan" was because when I removed items from the collection, they were not being deleted from the database and after scanning the forum, this option seemed to work.
Thanks,
John
|
|