-->
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.  [ 2 posts ] 
Author Message
 Post subject: Deferred Constraints
PostPosted: Tue Jul 05, 2005 6:15 pm 
Newbie

Joined: Sat Jun 04, 2005 2:35 pm
Posts: 7
Hibernate: 2.1

Database: Informix 7.2

I am trying to move some values between rows which happen to be unique. I am setting the values inside of a transaction but when I commit the transaction I get a uniqueness constraint violation due to the fact that Hibernate is trying to do the work in the wrong order, thus violating my constraints. Infomix supports deferred constraints but only inside of the context of a transaction, and when I try to do this I get an error saying that I am not in a transaction (apparently, even though I have asked hibernate to open a transaction it has not actually done it yet).

Any help and/or suggestions appreciated!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 05, 2005 7:42 pm 
Newbie

Joined: Sat Jun 04, 2005 2:35 pm
Posts: 7
Once again, i think i answered my own question. The answer seems to be an intermittent flush. Not ideal, but it solves the problem.


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

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.