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.
|