The issue seems, specifically, to be with the fact that TestCode extends AbstractCode without adding any attributes. This throws off the audit tracking. The workaround (as noted) is to (1) explicitly mark TestCode as @Audited or (2) add one or more attributes to the @Embeddable subclass (this latter is why Code works).
|