Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15683 (
https://hibernate.atlassian.net/browse/HHH-15683?atlOrigin=eyJpIjoiYWEwMD...
)
Re: Query.setLockOptions() ignores some of the options, apparently by design (
https://hibernate.atlassian.net/browse/HHH-15683?atlOrigin=eyJpIjoiYWEwMD...
)
Aaahhh, wait, perhaps this is more of a documentation bug.
So apparently QuerySqmImpl overrides the inherited implementation of setLockOptions() ,
and, contrary to its documented semantics , does copy over the aliasSpecificLockModes ,
but only if at least one was set.
This is actually a bit fragile, and it’s not what I would do, but at least it’s not as
crazy as what I described above.
(
https://hibernate.atlassian.net/browse/HHH-15683#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15683#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100210- sha1:4f8bc0d )