Annotation Type Auditable
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface Auditable
Annotates an auditable field or method. Tracks data changes for INSERT, UPDATE or DELETE in the audit table.- Author:
- Jim Richards
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
field
(Optional) The name of the field if different to the set/get methodboolean
recurse
(Optional) Tells the audit tool to recurse into theGenericEntity
and audit all the sub-entities.
-
-
-
Element Detail
-
field
String field
(Optional) The name of the field if different to the set/get method- Returns:
- default value
- Default:
- ""
-
-
-
recurse
boolean recurse
(Optional) Tells the audit tool to recurse into theGenericEntity
and audit all the sub-entities. Usually used with orphanRemoval = true orCascadeType
ALL or REMOVE actions.- Returns:
- false
- Default:
- false
-
-