8 Replies Latest reply on Dec 7, 2009 8:38 AM by Hernán Chanfreau

    Question about audited super-classes

    Hernán Chanfreau Master


      - B is a subclass of A
      - B has no envers annotation
      - A has a persistent property called p.

      If I mark the property p of as Audited, envers audits subclass B.
      If mark the whole class A as Audited, envers shows me a NotAuditedException for class B.

      It's easy to test with org.hibernate.envers.test.integration.superclass.MappedSubclassing test. If you move the @Audited from str property of SuperclassOfEntity and put it as class annotation in SuperclassOfEntity, this test fails.
      I wonder which behavior is wrong (if any)... But one is inconsistent with the other, I think...

      Adam, is this correct?