@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) @Repeatable(value=AuditOverrides.class) public @interface AuditOverride
The AuditingOverride annotation is used to override the auditing
behavior of a superclass or single property inherited from MappedSuperclass
type, or attribute inside an embedded component.
Embedded,
Embeddable,
MappedSuperclass,
AssociationOverride,
AuditJoinTable| Modifier and Type | Optional Element and Description |
|---|---|
AuditJoinTable |
auditJoinTable
New
AuditJoinTable used for this field (or property). |
Class |
forClass
Specifies class which field (or property) mapping is being overridden.
|
boolean |
isAudited
Indicates if the field (or property) is audited; defaults to
true. |
String |
name
Name of the field (or property) whose mapping is being overridden.
|
public abstract String name
Name of the field (or property) whose mapping is being overridden. Allows empty value if
AuditOverride is used to change auditing behavior of all attributes inherited from
MappedSuperclass type.
public abstract boolean isAudited
Indicates if the field (or property) is audited; defaults to true.
public abstract AuditJoinTable auditJoinTable
New AuditJoinTable used for this field (or property). Its value
is ignored if isAudited() equals to false.
public abstract Class forClass
Specifies class which field (or property) mapping is being overridden. <strong>Required</strong> if
AuditOverride is used to change auditing behavior of attributes inherited from
MappedSuperclass type.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.