Class AnnotationAuditingConfiguration
java.lang.Object
org.springframework.data.auditing.config.AnnotationAuditingConfiguration
- All Implemented Interfaces:
AuditingConfiguration
Default implementation for
AuditingConfiguration.- Author:
- Ranie Jade Ramiso, Thomas Darimont, Oliver Gierke
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationAuditingConfiguration(AnnotationMetadata metadata, Class<? extends Annotation> annotation) Creates a new instance ofAnnotationAuditingConfigurationfor the givenAnnotationMetadataand annotation type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the bean name of theAuditorAwareinstance to be used..Returns the bean name of theDateTimeProviderto be used.booleanReturns whether the entity shall be marked as modified on creation.booleanReturns whether the creation and modification dates shall be set.
-
Constructor Details
-
AnnotationAuditingConfiguration
public AnnotationAuditingConfiguration(AnnotationMetadata metadata, Class<? extends Annotation> annotation) Creates a new instance ofAnnotationAuditingConfigurationfor the givenAnnotationMetadataand annotation type.- Parameters:
metadata- must not be null.annotation- must not be null.
-
-
Method Details
-
getAuditorAwareRef
Description copied from interface:AuditingConfigurationReturns the bean name of theAuditorAwareinstance to be used..- Specified by:
getAuditorAwareRefin interfaceAuditingConfiguration- Returns:
-
isSetDates
public boolean isSetDates()Description copied from interface:AuditingConfigurationReturns whether the creation and modification dates shall be set. Defaults to true.- Specified by:
isSetDatesin interfaceAuditingConfiguration- Returns:
-
getDateTimeProviderRef
Description copied from interface:AuditingConfigurationReturns the bean name of theDateTimeProviderto be used.- Specified by:
getDateTimeProviderRefin interfaceAuditingConfiguration- Returns:
-
isModifyOnCreate
public boolean isModifyOnCreate()Description copied from interface:AuditingConfigurationReturns whether the entity shall be marked as modified on creation. Defaults to true.- Specified by:
isModifyOnCreatein interfaceAuditingConfiguration- Returns:
-