-->
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: Hibernate :Concurrency Question
PostPosted: Tue Mar 29, 2005 5:03 pm 
Newbie

Joined: Tue Mar 29, 2005 4:53 pm
Posts: 1
Hi All,
I have been asked to check if Hibernate is suitable for our project requirement .I had gone through some document available on net about Hibernate's capabilities.I had one question regarding cocurrency though :
Say , 'user1' execute a Select query and am given a reference to a 'Product' object.Will Hibernate lock this object for update(ie) will no one else be able to update this object until i have commited the changes to the DB?
will this logic work even if the 'user1' hold the lock on the object for almost a day.
Can you please point me to some link which has details about this ?I would need to have a dicussion with my manager based on this

Thanks a lot,
Ashwin


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 29, 2005 6:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hibernate does not lock objects.

we let the databases do what they are brilliant at - managing concurrency and consistency.

we support optimistic and pessimistic locking.

-max

_________________
Max
Don't forget to rate


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.