Annotation Type 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 Elements Modifier and Type Optional Element Description String
auditorAwareRef
Configures aAuditorAware
bean to be used to lookup the current principal.String
dateTimeProviderRef
Configures aDateTimeProvider
bean name that allows customizing theLocalDateTime
to be used for setting creation and modification dates.boolean
modifyOnCreate
Configures whether the entity shall be marked as modified on creation.boolean
setDates
Configures whether the creation and modification dates are set.
-
-
-
Element Detail
-
auditorAwareRef
String auditorAwareRef
Configures aAuditorAware
bean 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:
- ""
-
-
-
dateTimeProviderRef
String dateTimeProviderRef
Configures aDateTimeProvider
bean name that allows customizing theLocalDateTime
to 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:
- ""
-
-