This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Concurrency Issue in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Concurrency Issue in Hibernate" Watch "Concurrency Issue in Hibernate" New topic
Author

Concurrency Issue in Hibernate

Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 140
I have to work upon the scenario. Suppose there are 2 users. 1st user opens up a page and updates some data. The 2nd user also opens up the same page and updates the same data. The first user submits the data first and then the 2nd user submits the data. So, it corrupts the data in the database. So, how to handle such scenarios in Hibernate.
Carles Gasques
Ranch Hand

Joined: Apr 19, 2013
Posts: 199
    
    1
Hi,

One approximation could be simulating select for update in hibernate


Cheers,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Concurrency Issue in Hibernate
 
Similar Threads
Session beans synchronization
Should we always 'synchronize' the db operations?
How HttpSession is not thread safe
database update techniques?
How to refresh the main window once we close the popup