[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4661) Properly propagate Query.setLockMode to Hibernate Core

Steve Ebersole (JIRA) noreply at atlassian.com
Sun Jan 24 12:23:29 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35322#action_35322 ] 

Steve Ebersole commented on HHH-4661:
-------------------------------------

What is the exact semantic here in terms of what to lock?  Hibernate query locking is based on the individual "identification variables".  In others words given an HQL query "from Animal a join fetch a.friends", setLockMode( "a", someLockMode ) only affects the lockmode of the root return because it is only applied to the root from via its alias.  

What is the rule for this in JPA ql/criterias?

> Properly propagate Query.setLockMode to Hibernate Core
> ------------------------------------------------------
>
>                 Key: HHH-4661
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4661
>             Project: Hibernate Core
>          Issue Type: Sub-task
>          Components: entity-manager
>            Reporter: Emmanuel Bernard
>             Fix For: 3.5.0-Beta-4
>
>


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