I have an entity subclass Child annotated with @Audited. The parent entity class Parent is not audited. Child is using JOIN-type inheritance.
I have tried using either of
- @Audited(auditParents={Parent.class})
- @AuditOverride(forClass=Parent.class)
on Child to indicate that auditing of Parent should be switched on, but in each case I get an error:
Quote:
"org.hibernate.MappingException: Entity 'Child' is audited, but its superclass: 'Parent' is not."
I'm using envers 4.2.19; is this a known problem, or have I misconfigured something?