Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
collection with cascade="all-delete-orphan" was no longer...
posted 9 years ago
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 (
) 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?
It is sorta covered in the
JavaRanch Style Guide
Boost this thread!
2nd Level cache eviction not cascading
Hibernate - ObjectDeletedException: deleted object would be re-saved by cascade...
org.hibernate.Criteria: field ROOT_ENTITY not found
Implementing object versioning with Hibernate