This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes collection with cascade= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "collection with cascade="all-delete-orphan" was no longer..." Watch "collection with cascade="all-delete-orphan" was no longer..." New topic
Author

collection with cascade="all-delete-orphan" was no longer...

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
Hey,

working with jboss4.2and JPA.

i have a detached entity.
and i call to em.merge

when i add - cascade delete orphan annotation i get the following exception:
collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance

I searched in google and in the forum (http://forum.hibernate.org/viewtopic.php?t=956859) and i saw that the reason for this exception is when you have "unstandard setters for collection", but all my collection setters are simple setters.

does any one has another idea?

Thank you
 
 
subject: collection with cascade="all-delete-orphan" was no longer...
 
Similar Threads
2nd Level cache eviction not cascading
Hibernate - ObjectDeletedException: deleted object would be re-saved by cascade...
Implementing object versioning with Hibernate
Cascade Issue
org.hibernate.Criteria: field ROOT_ENTITY not found