This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic