-->
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: locking and database access
PostPosted: Thu Oct 07, 2004 2:28 am 
Newbie

Joined: Thu Oct 07, 2004 2:21 am
Posts: 1
how do i achieve the lock in accessing a single record from the Database?

I retrieved a record using IE, then retrieved the same record using Netscape. I locked the record in IE so why is it possible to access it in Netscape?

i used this line:
getHibernateTemplate().get(<class>,<primary key>,LockMode.UPGRADE_NOWAIT)

i tried to get the lock of the record using an external SQL program, andwhen i tried to access it thru IE/Netscape, the exception happened (locked record).

any suggestions?


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.