[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2975) Interceptor onFlushDirty collections - previous and current state the same instance

Clayton J. Kovar (JIRA) noreply at atlassian.com
Thu Nov 29 02:35:56 EST 2007


Interceptor onFlushDirty collections - previous and current state the same instance
-----------------------------------------------------------------------------------

                 Key: HHH-2975
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2975
             Project: Hibernate3
          Issue Type: Bug
          Components: core
    Affects Versions: 3.2.2
         Environment: Hibernate 3.2.2 - Oracle thin driver 10.1.0.4.0
            Reporter: Clayton J. Kovar


When calling Session.merge(entity)  {therefore the previous state is available}

the interceptor's onFlushDirty is called and the previous state for all of the simple properties correctly passes the previous values but with a collection the same collection instance is passed in both the previous and current state arrays.  

So far I have only seen this behavior on a Map with a one-to-many relationship to another entity.  I have not tried it yet with Lists, Sets, or Bags.

I'm assuming this is not expected behavior, but please let me know if it is.

Best regards.

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