-->
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: Exclusive read and write table lock
PostPosted: Thu Dec 06, 2007 12:48 pm 
Newbie

Joined: Wed Nov 07, 2007 3:58 pm
Posts: 15
Hi,

i am using Hibernate 3.2 JPA. Because of massive concurrent access on my program i have to use a table lock.

At some point in a transaction i want to lock a whole table for the current transaction and remove this lock not until commit.
Other transactions that try to access this tables should wait until there is no lock.

How can i do this with hibernate JPA ? I found the method lock(Object, Read/Write) but seams not be what i am looking for...

i am looking for an exclusive read and write table lock

Regards, Tobias[/code]


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.