I have an object in the database, and I read it. Then the session get's closed, so the object is detached. I do some updates and want to change the row in the database so I open a new session and call session.save(myObject), and I get the following error message:
Don't change the reference to a collection with cascade="all-delete-orphan"
What does it mean? Where do I change the collection reference? When I call session.update this error doesn't occur, but I would like to know what really happens and causes this ezception.
Thanks.
|