Annotation Interface EnableSpannerAuditing
@Inherited
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@Import(SpannerAuditingRegistrar.class)
public @interface EnableSpannerAuditing
The annotation used to activate auditing functionality.
- Since:
- 1.2
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionConfigures aAuditorAwarebean to be used to lookup the current principal.Configures aDateTimeProviderbean name that allows customizing theLocalDateTimeto be used for setting creation and modification dates.booleanConfigures whether the entity shall be marked as modified on creation.booleanConfigures whether the creation and modification dates are set.
-
Element Details
-
auditorAwareRef
String auditorAwareRefConfigures aAuditorAwarebean to be used to lookup the current principal.- Returns:
- the name of a custom auditor provider. If blank then one will be looked up bean type.
- Default:
- ""
-
setDates
boolean setDatesConfigures whether the creation and modification dates are set. Defaults to true.- Returns:
- whether dates are set by the auditing functionality.
- Default:
- true
-
modifyOnCreate
boolean modifyOnCreateConfigures whether the entity shall be marked as modified on creation. Defaults to true.- Returns:
- whether an entity is marked as modified when it is created.
- Default:
- true
-
dateTimeProviderRef
String dateTimeProviderRefConfigures aDateTimeProviderbean name that allows customizing theLocalDateTimeto be used for setting creation and modification dates.- Returns:
- the name of the custom time provider. If blank then one will be looked up bean type.
- Default:
- ""
-