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: transaction data
PostPosted: Tue Mar 15, 2005 12:31 pm 
Senior
Senior

Joined: Sun Mar 14, 2004 10:16 am
Posts: 129
Location: Ankara
Hi all,
I want to manage the transactions and I wonder if I can do this via hibernate classes only.

for each user source operation, I create a transaction and add this to the transaction pool but I do not commit the transaction until the user press
"commit changes".

So far so good, after user commits changes, then click
"rollback changes", I iterate transaction pool and call their rollbacks.

Still so far so good, but in that rollback operation , I have to "rollback" some extra work I did programatically, thus I need the "operated object new state" , "operated object old state" and the "operation type".

Can I get this data from hibernate? I dont want to keep extra hashmaps for transaction-operation pairs to use in rollbacks.

_________________
-developer


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.