-->
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: ActionQueue status after a rollback
PostPosted: Fri Aug 31, 2007 8:15 am 
Newbie

Joined: Tue Mar 13, 2007 11:59 am
Posts: 3
With Hibernate 3.2.5

ActionQueue has different arrays: insertions, deletions, etc. All are cleared after a succesful execution:
insertions, deletions, etc. are cleared during the execution of each action and the executions array is cleared at the end (calling afterTransactionCompletion()).

But when an error ocurred during execution (throwing an exception) and a rollback is done, only the executions array is cleared.
¿What is about the other arrays? ¿Should be cleared too?

For example, I try to insert an object that violates a constraint and an exception is thrown. Then I do a rollback, but the insertions array is not cleared.
So I can't use the sessión anymore (stills try to do the wrong insertion on every access)


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.