2 Replies Latest reply on Nov 8, 2011 7:42 AM by smc_de

    Envers not auditing properties in super class

    smc_de

      Hi!

       

      Using Envers 3.6.2 I have the following constellation:

       

      public class B{

           protected String b;

      }

       

      @Audited

      public class A extends B{

           private String a;

      }

       

      The mapping hbm-XML of entity A contains the properties a and b. And of course, the database tables A and A_AUD contain columns for a and b.

       

      The problem is that I want B.b to be audited as well, but I cannot annotate class B as audited. The versioned Entities I retrieve from the AuditQueries have only NULL-values for property b.

       

      So is it only a configuration problem, or is it Envers' nature to not audit properties in a not-audited super class?

      Thanks a lot for your help!