Joined: Sun Jul 01, 2007 12:15 pm Posts: 7 Location: Philippines
|
I made a deep copy of an object that has a list defined with the cascade="all-delete-orphan" attribute.
Since i made a deep copy, the list that's inside my clone is also a new object. So i'm assuming that when i call the session.saveOrUpdate, hibernate would treat it as a new record and insert into the DB . But i'm getting a : "org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan"".
Anybody encountered this before?
|
|