-->
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: influence order in which hibernate performs inserts / update
PostPosted: Wed Jun 01, 2005 1:03 pm 
Newbie

Joined: Fri May 20, 2005 2:42 am
Posts: 14
Hi,

is there a way to influence the order in which hibernate (3.0.5) performs
the insert and update statements ?
Problem is that i have a Business object that has a list of security
objects. I load the business objects, modify them and the associated
security objects. After that i save the business objects. For some
reasons hibernate performs an insert on security object before it
performs an insert on the business object. Because we have a
constraint from the security to the business class, the insert of the
security will fail if the associated business object does not yet
exist in the table.

thanks in advance,
Andreas


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.