-->
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 a table to sum(field) then add into another table?
PostPosted: Mon Sep 22, 2003 12:13 am 
Regular
Regular

Joined: Sun Sep 21, 2003 11:43 pm
Posts: 85
Location: Massachusetts
I'm switching to Hibernate 2.0.2 / MySQL 4.0.12 from manual transactions. My old transaction needed to lock 2 tables, sum(field) in the first table, check the 2nd table against it, insert my record into the first table, then unlock everything. I am unable to figure out the right locking mode for doing something like this in Hibernate (MySQL dialect) or in the docs/faq's/forum/Internet.

Can someone point me in the right direction to either do with directly within Hibernate (MySQL dialect) or how to tell the session to lock/unlock certain tables for me at my command?

Thanks any help pointing me in the right direction.
David


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.