]
Gail Badner commented on HHH-4958:
----------------------------------
The snapshot is no longer needed when the EntityEntry is created with Status.READ_ONLY.
I've changed the constructor to only retain the snapshot when status !=
Status.READ_ONLY.
Fixed in .
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: