-->
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: Cascade - Sequence Of Operations ?
PostPosted: Thu Jun 04, 2009 6:36 pm 
Newbie

Joined: Thu Jun 04, 2009 6:28 pm
Posts: 2
Hibernate Collection is set to cascade = "all-delete-orphan".
Out of the objects in the collection some of them need to be updated and some will get deleted.
Hibernate is firing update of the objects first before delete.
Because of the update getting fired first some of the integrity constraints are failing as update is expecting the deleted objects not to be there.

Is there anyway that we can make hibernate fire deletes first and then updates in the the batch process for collections.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.