-->
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: query.setlockmode()
PostPosted: Tue May 12, 2009 4:20 pm 
Newbie

Joined: Tue May 12, 2009 3:58 pm
Posts: 1
I would like to know how this behaves when the alias given to setlockmode() is a joined subclass.

e.g. query.setlockmode("subclassalias", LockMode.UPGRADE).
In a hibernate named select query in my testing, this ends up adding a "for update of.." in the SQL, but only on the DB table that corresponds to the superclass. it doesnt apply the lock to any of the fields on the table corresponding to the subclass.
Does anyone know how to fix this so that the "for update of.." will also be applied to all fields on the subclass table?

Thanks in advance.


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.