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