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.- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionNewAuditJoinTableused for this field (or property).Specifies class which field (or property) mapping is being overridden.booleanIndicates 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 ifAuditOverrideis used to change auditing behavior of all attributes inherited fromMappedSuperclasstype.- Default:
""
-
isAudited
boolean isAuditedIndicates if the field (or property) is audited; defaults totrue.- Default:
true
-
auditJoinTable
AuditJoinTable auditJoinTableNewAuditJoinTableused 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 ifAuditOverrideis used to change auditing behavior of attributes inherited fromMappedSuperclasstype.- Default:
void.class
-