Lockmode defined in orm.xml is not obeyed
-----------------------------------------
Key: HHH-6826
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6826
Project: Hibernate Core
Issue Type: Bug
Components: entity-manager
Affects Versions: 3.6.8
Environment: Oracle9 dialect. Oracle 11 drivers.
Reporter: David J. M. Karlsen
When defining
{noformat}
<lock-mode>PESSIMISTIC_WRITE</lock-mode>
{noformat}
in a named query in the orm.xml file the generated sql does not contain "for
update".
If I execute the query with lockmode explicity like:
{noformat}
.setLockMode( LockModeType.PESSIMISTIC_WRITE )
{noformat}
locking will get correctly applied.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira