-->
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: [Multi User Issue] Record or Row Locking with Hibernate
PostPosted: Tue Jun 19, 2012 12:14 am 
Newbie

Joined: Fri Oct 08, 2004 6:43 am
Posts: 3
Hi,


I wondering what is the best technique for accommodating issue with multi user.
For example:
Imagine there is a Employee Inquiry.
User 1 try to edit Employee 001 while User 2 try to do the same thing.
If User 1 save the data first and then User 2, then the data will overwritten with User 2.
Changes made with User 1 will be loss.

How to prevent this with Hibernate?

PS: I'm using ZK 5.0.8, Spring and Hibernate


Thanks
Hari


Top
 Profile  
 
 Post subject: Re: [Multi User Issue] Record or Row Locking with Hibernate
PostPosted: Tue Jun 19, 2012 6:51 am 
Contributor
Contributor

Joined: Fri Apr 03, 2009 11:07 am
Posts: 11
The section "Optimistic concurrency control" in the Hibernate manual will show you the solution.

Regards,
Jeremy


Top
 Profile  
 
 Post subject: Re: [Multi User Issue] Record or Row Locking with Hibernate
PostPosted: Tue Jun 19, 2012 11:06 pm 
Newbie

Joined: Fri Oct 08, 2004 6:43 am
Posts: 3
Thanks Jeremy


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.