-->
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.  [ 3 posts ] 
Author Message
 Post subject: Multiple updates
PostPosted: Mon Feb 08, 2010 3:27 pm 
Newbie

Joined: Sat May 09, 2009 3:19 pm
Posts: 9
Does Hibernate protect you from mutiple updates to the same table row by different users?
How would that work?
If I have the information in my object and someone else updates the row through Hibernate, I still have the old values don't I?
So if I add values to the old information (for instance updating a bank account balance) that I got at the time I retreived the rows information, am I not still overwriting the update done by the other user?


Top
 Profile  
 
 Post subject: Re: Multiple updates
PostPosted: Mon Feb 08, 2010 4:42 pm 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
To begin with, read chapter 11.3 and 11.4 in the Hibernate documentation. And here is the link: http://docs.jboss.org/hibernate/stable/ ... optimistic


Last edited by nordborg on Mon Feb 08, 2010 5:45 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Multiple updates
PostPosted: Mon Feb 08, 2010 5:44 pm 
Newbie

Joined: Sat May 09, 2009 3:19 pm
Posts: 9
Thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.