-->
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.  [ 1 post ] 
Author Message
 Post subject: Row Locking - select for update
PostPosted: Tue Oct 25, 2005 2:26 am 
Newbie

Joined: Wed Sep 14, 2005 5:07 pm
Posts: 6
Howdy all,

I have been trying to do a select for update and have been somewhat un-succefull. Here is the psuedo code I have been trying.

1. load a object with LockMode.Read and/or LockMode.Update. session.lock(...) again with a LockMode. I update the object, update, and flush.

2. Specifiy a Lock mode on the beginTransaction() and use step1.

The result is that the lock is a table lock on the moment I flush.
:(

So, how does one lock a row on the moment of the read??? Did I miss something in the configuration??? Is there something I have to set in SQL server???


anyone.... Help please


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.