[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4958) Immutable entity snapshot is retained after insert

Gail Badner (JIRA) noreply at atlassian.com
Fri Feb 26 14:21:47 EST 2010


Immutable entity snapshot is retained after insert
--------------------------------------------------

                 Key: HHH-4958
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4958
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.5.0-CR-2
            Reporter: Gail Badner
            Assignee: Gail Badner
             Fix For: 3.5.0.Next


The "loaded state" is put in the EntityEntry when an immutable entity is added to the session via AbstractSaveEventListener.performSaveOrReplicate(), which is used by Session.persist(), Session.save(), and Session.saveOrUpdate().

The loaded state is not removed, even after flushing the session. It should be removed as soon as it is no longer needed. 

I am investigating whether it is ever needed. If not, then it shouldn't be put in the EntityEntry in the first place.

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