[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2392) LockModes referencing non-root joined-subclass class in HQL/Criteria
Steve Ebersole (JIRA)
noreply at atlassian.com
Mon Jan 29 14:19:40 EST 2007
LockModes referencing non-root joined-subclass class in HQL/Criteria
---------------------------------------------------------------------
Key: HHH-2392
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2392
Project: Hibernate3
Type: Bug
Components: core
Environment: dialects supporting FOR UPDATE OF construct (Dialect.forUpdateOfColumns() == true)
Reporter: Steve Ebersole
Assigned to: Steve Ebersole
Fix For: 3.2.3
When setting a LockMode to an HQL or Criteria query where the lock applies to a non-root subclass in a joined-subclass hierarchy, the result is incorrect on dialects which support the FOR UPDATE OF construct. The problem is that logically, the root table should be locked; however, the "driving" table is instead locked currently.
For example, consider:
Person
|
-----------------
| |
Employee Customer
For queries against Employee requesting that Employee be locked, the physical DB lock should actually be applied to the Person table!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list