[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4958) Immutable entity snapshot is retained after insert
Gail Badner (JIRA)
noreply at atlassian.com
Wed Mar 10 05:02:47 EST 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35775#action_35775 ]
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: 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