-->
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: MySQL JPA Dialect
PostPosted: Fri Feb 05, 2010 3:27 pm 
Newbie

Joined: Wed Jan 21, 2009 5:55 pm
Posts: 4
I'm looking at doing pessimistic locking in one situation, and seeing that some people do:

org.hibernate.Query q;
...
q.setLockMode("tablealiastolock", LockMode.UPGRADE);

to make that happen, but I don't see how that would work with MySQL because the MySQL dialects don't override Dialect.forUpdateOfColumns() and it returns false by default. Should I maybe extend MySQL5InnoDBDialect to enable "select for update"? I am on MySQL 5.0, and it seems like it supports the "select for update" syntax in InnoDB: http://dev.mysql.com/doc/refman/5.0/en/ ... reads.html

Thanks,
Jim


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.