Uploaded image for project: 'Hibernate ORM'
  1. HHH-6839

ComponentType has incorrect dirty checking

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Rejected
    • Affects versions: 3.3.1
    • Fix versions: None
    • Components: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      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

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: