Annotation Interface EnableJdbcAuditing
@Inherited
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@Import(org.springframework.data.jdbc.repository.config.JdbcAuditingRegistrar.class)
public @interface EnableJdbcAuditing
Annotation to enable auditing in JDBC via annotation configuration.
- Author:
- Kazuki Shimizu
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionConfigures theAuditorAwarebean 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 theAuditorAwarebean to be used to lookup the current principal.- See Also:
-
AuditorAware
- Default:
- ""
-
setDates
boolean setDatesConfigures whether the creation and modification dates are set.- Default:
- true
-
modifyOnCreate
boolean modifyOnCreateConfigures whether the entity shall be marked as modified on creation.- Default:
- true
-
dateTimeProviderRef
String dateTimeProviderRefConfigures aDateTimeProviderbean name that allows customizing theLocalDateTimeto be used for setting creation and modification dates.- See Also:
-
DateTimeProvider
- Default:
- ""
-