-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Question about cascade="all-delete-orphan"
PostPosted: Fri Jan 15, 2010 10:10 am 
Newbie

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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.