[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6839) ComponentType has incorrect dirty checking

Eugene Goroschenya (JIRA) noreply at atlassian.com
Tue Nov 22 04:24:19 EST 2011


ComponentType has incorrect dirty checking
------------------------------------------

                 Key: HHH-6839
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6839
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.3.1
            Reporter: Eugene Goroschenya
            Priority: Critical


The problem is that persisted object is always dirty in case when component field was set to component instance with null in all fields even if there were not other changes.
So it leads to unnecessary updating of object.

Formally it changes persisted object but not data in DB and has no sense to mark it dirty and schedule update for such changes in persisted object.

And it even worse in case when Interceptor#onFlushDirty(...) is used to do some additional stuffs and if Envers is used to audit changes.

It seems such problem was foxed for NHibernate, see https://nhibernate.jira.com/browse/NH-901 but not in Hibernate

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list