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

In general it is impossible to override properties defined in @MappedSuperclass to change how they will be handled during auditing.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects versions: 3.2.x, 3.3.2, 3.5.0.Beta-1, 3.5.0-Beta-2
    • Fix versions: 4.0.1
    • Components: hibernate-envers
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      It seems there are several use cases with this issue but most important for me is

      @MappedSuperclass
      class A {
      @Audited
      private String value;
      }

      @Entity
      @Audited
      class MyAutided extends A {
      }

      @Entity
      class MyNotAutided extends A {
      }

      I need MyNotAutided is not audited at all (there is not MyNotAutided_AUD table and MyNotAutided revisions are not created)
      nut seems it is impossible because use case above leads to creating MyNotAutided_AUD table and creating of revisions for MyNotAutided.

      I assume @AuditOverride must support it to say that MyNotAutided.value is not audited but it doesn't work.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: