-->
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: Transaction in progress
PostPosted: Fri Mar 12, 2004 1:23 pm 
Beginner
Beginner

Joined: Wed Feb 25, 2004 10:58 am
Posts: 43
Is there something atomatic in hibernate that will do the following , or do I have to use some sort of versioning

Person A selects an order to work on in a web app (does some changes)
Person B a couple of minutes later selects the same order (does some changes)
Person A commits
Person B commits

Person B's data will be the visible data . Is there something that is built into hibernate that will automatically thrown an exception indicating that a transaction is already in progress when user B trys to modify the data or do I have to implement some kind of versioning ?

Serge


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2004 2:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Hibernate can do the versioning for you, by using a version or timestamp column, or by using the optimistic-locking attribute.


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.