-->
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 session.saveOrUpdateCopy() and cascade
PostPosted: Thu Sep 01, 2005 7:27 am 
Newbie

Joined: Tue Jan 25, 2005 8:37 am
Posts: 2
Hi,

During session.saveOrUpdateCopy(object) I get the NonUniqueObjectException on one of the object's children or parent, as they are already associated with the session with a different reference, and as the cascade generates a simple save() on them.

I was wondering if there's a way to force the save-copy mode on the object's children and parent during the cascade that's generated by the session.saveOrUpdateCopy(object).

If not in 2.1.8 maybe in 3.0?

Thanks in advance for any help!


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.