# Audit properties in base class when using InheritanceType.JOINED

**URL:** <https://discourse.hibernate.org/t/audit-properties-in-base-class-when-using-inheritancetype-joined/4805>\
**Category:** Hibernate ORM\
**Created:** [November 25, 2020, 9:42am UTC](https://discourse.hibernate.org/t/audit-properties-in-base-class-when-using-inheritancetype-joined/4805 "2020-11-25T09:42:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rod](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@rod](https://discourse.hibernate.org/u/rod)\
**Post date:** [November 25, 2020, 9:42am UTC](https://discourse.hibernate.org/t/audit-properties-in-base-class-when-using-inheritancetype-joined/4805/1 "2020-11-25T09:42:48Z")

</div>

Hi,

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:

> @Entity  
> class BaseClass {
> 
> ```
> @Id
> private Long id;
> 
> @ManyToOne
> @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?
