[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4950) Add support for locking read-only and immutable entities

Gail Badner (JIRA) noreply at atlassian.com
Wed Feb 24 14:02:47 EST 2010


Add support for locking read-only and immutable entities
--------------------------------------------------------

                 Key: HHH-4950
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4950
             Project: Hibernate Core
          Issue Type: New Feature
          Components: core
    Affects Versions: 3.5.0-CR-2
            Reporter: Gail Badner


There are some methods that throw ObjectDeletedException if the entity status is not Status.MANAGED:
- AbstractLockUpgradeEventListener.upgradeLock(...)
- SessionImpl.getCurrentLockMode(Object object)

I have not fully investigated this issue. There may be other reasons why read-only and immutable entities cannot be locked.

LockTest can be updated to test read-only and immutable entities.

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