Audit properties in base class when using InheritanceType.JOINED


In my situation, I am using InheritanceType.JOINED, and I need to audit a property in the base class, but none in the subclass. Ideally, I want to avoid a situation where I have to create separate audit tables for each subclass.

For example:

class BaseClass {

private Long id;

@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
@JoinColumn(name = "person_id", referencedColumnName = "id", nullable = false)
private Person person


class SubClass extends BaseClass {
private String detail; // No need to audit

If I make SubClass Audited, even if I make its properties NotAudited, I still need to create an audit table for it. But unfortunately, I cannot seem to audit the BaseClass when realised as a SubClass.

Any ideas?