Package org.hibernate.envers
Annotation Type Audited
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class[]
auditParents
Deprecated.Use@AuditOverride(forClass=SomeEntity.class)
instead.String
modifiedColumnName
The column name of the modified field.RelationTargetAuditMode
targetAuditMode
Specifies if the entity that is the target of the relation should be audited or not.RelationTargetNotFoundAction
targetNotFoundAction
Specifies if the entity that is the relation target isn't found, how should the system react.boolean
withModifiedFlag
Should a modification flag be stored for each property in the annotated class or for the annotated property.
-
-
-
Element Detail
-
targetAuditMode
RelationTargetAuditMode targetAuditMode
Specifies if the entity that is the target of the relation should be audited or not. If not, then when reading a historic version an audited entity, the relation will always point to the "current" entity. This is useful for dictionary-like entities, which don't change and don't need to be audited.- Default:
- org.hibernate.envers.RelationTargetAuditMode.AUDITED
-
-
-
targetNotFoundAction
@Incubating RelationTargetNotFoundAction targetNotFoundAction
Specifies if the entity that is the relation target isn't found, how should the system react. The default is to use the behavior configured based on the system property:EnversSettings.GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG
. When the configuration property istrue
, this is to use the legacy behavior which implies that the system should throw theEntityNotFoundException
errors unless the user has explicitly specified the valueRelationTargetNotFoundAction.IGNORE
. When the configuration property isfalse
, this is to use the new behavior which implies that the system should ignore theEntityNotFoundException
errors unless the user has explicitly specified the valueRelationTargetNotFoundAction.ERROR
.- Default:
- org.hibernate.envers.RelationTargetNotFoundAction.DEFAULT
-
-
-
auditParents
@Deprecated Class[] auditParents
Deprecated.Use@AuditOverride(forClass=SomeEntity.class)
instead.Specifies the superclasses for which properties should be audited, even if the superclasses are not annotated withAudited
. Causes all properties of the listed classes to be audited, just as if the classes hadAudited
annotation applied on the class level.The scope of this functionality is limited to the class hierarchy of the annotated entity.
If a parent type lists any of its parent types using this attribute, all properties in the specified classes will also be audited.
- Default:
- {}
-
-