Package org.hibernate.envers
Annotation Interface AuditOverride
@Target({TYPE,METHOD,FIELD})
@Retention(RUNTIME)
@Repeatable(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.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionNewAuditJoinTable
used for this field (or property).Specifies class which field (or property) mapping is being overridden.boolean
Indicates if the field (or property) is audited; defaults totrue
.Name of the field (or property) whose mapping is being overridden.
-
Element Details
-
name
String nameName of the field (or property) whose mapping is being overridden. Allows empty value ifAuditOverride
is used to change auditing behavior of all attributes inherited fromMappedSuperclass
type.- Default:
- ""
-
isAudited
boolean isAuditedIndicates if the field (or property) is audited; defaults totrue
.- Default:
- true
-
auditJoinTable
AuditJoinTable auditJoinTableNewAuditJoinTable
used for this field (or property). Its value is ignored ifisAudited()
equals tofalse
.- Default:
- @org.hibernate.envers.AuditJoinTable
-
forClass
Class forClassSpecifies class which field (or property) mapping is being overridden. Required ifAuditOverride
is used to change auditing behavior of attributes inherited fromMappedSuperclass
type.- Default:
- void.class
-