Package org.hibernate.envers
Annotation Type AuditOverride
-
@Target({TYPE,METHOD,FIELD}) @Retention(RUNTIME) @Repeatable(AuditOverrides.class) public @interface AuditOverride
TheAuditingOverrideannotation is used to override the auditing behavior of a superclass or single property inherited fromMappedSuperclasstype, or attribute inside an embedded component.- See Also:
Embedded,Embeddable,MappedSuperclass,AssociationOverride,AuditJoinTable
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description AuditJoinTableauditJoinTableNewAuditJoinTableused for this field (or property).ClassforClassSpecifies class which field (or property) mapping is being overridden.booleanisAuditedIndicates if the field (or property) is audited; defaults totrue.StringnameName of the field (or property) whose mapping is being overridden.
-
-
-
Element Detail
-
name
String name
Name 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:
- ""
-
-
-
auditJoinTable
AuditJoinTable auditJoinTable
NewAuditJoinTableused for this field (or property). Its value is ignored ifisAudited()equals tofalse.- Default:
- @org.hibernate.envers.AuditJoinTable
-
-
-
forClass
Class forClass
Specifies class which field (or property) mapping is being overridden. Required ifAuditOverrideis used to change auditing behavior of attributes inherited fromMappedSuperclasstype.- Default:
- void.class
-
-