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
ConstructorDescriptionAnnotationAuditingConfiguration
(AnnotationMetadata metadata, Class<? extends Annotation> annotation) Creates a new instance ofAnnotationAuditingConfiguration
for the givenAnnotationMetadata
and annotation type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the bean name of theAuditorAware
instance to be used..Returns the bean name of theDateTimeProvider
to be used.boolean
Returns whether the entity shall be marked as modified on creation.boolean
Returns whether the creation and modification dates shall be set.
-
Constructor Details
-
AnnotationAuditingConfiguration
public AnnotationAuditingConfiguration(AnnotationMetadata metadata, Class<? extends Annotation> annotation) Creates a new instance ofAnnotationAuditingConfiguration
for the givenAnnotationMetadata
and annotation type.- Parameters:
metadata
- must not be null.annotation
- must not be null.
-
-
Method Details
-
getAuditorAwareRef
Description copied from interface:AuditingConfiguration
Returns the bean name of theAuditorAware
instance to be used..- Specified by:
getAuditorAwareRef
in interfaceAuditingConfiguration
- Returns:
-
isSetDates
public boolean isSetDates()Description copied from interface:AuditingConfiguration
Returns whether the creation and modification dates shall be set. Defaults to true.- Specified by:
isSetDates
in interfaceAuditingConfiguration
- Returns:
-
getDateTimeProviderRef
Description copied from interface:AuditingConfiguration
Returns the bean name of theDateTimeProvider
to be used.- Specified by:
getDateTimeProviderRef
in interfaceAuditingConfiguration
- Returns:
-
isModifyOnCreate
public boolean isModifyOnCreate()Description copied from interface:AuditingConfiguration
Returns whether the entity shall be marked as modified on creation. Defaults to true.- Specified by:
isModifyOnCreate
in interfaceAuditingConfiguration
- Returns:
-