-->
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: locks/concurrent transactions - sessions - Help please
PostPosted: Tue May 20, 2008 12:43 pm 
Newbie

Joined: Tue May 20, 2008 12:22 pm
Posts: 1
I am new to hibernate and was trying out few things and was wondering how locks can be implemented using hibernate...
Say if i have two threads trying to update the data (same row in database) using different sessions...and if one of the thread updates the data in that row after other threads gets the data...how do i make sure other thread knows about the changes?

-Kanth


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 3:19 pm 
Red Hat Associate
Red Hat Associate

Joined: Mon Aug 16, 2004 11:14 am
Posts: 253
Location: Raleigh, NC
Read this entire chapter:

http://www.hibernate.org/hib_docs/refer ... tions.html

If it doesn't sink in, read it again :) You can't explain this topic in a short forum response.

_________________
Chris Bredesen
Senior Software Maintenance Engineer, JBoss


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.