Annotation Interface EnableReactiveMongoAuditing
@Inherited
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@Import(org.springframework.data.mongodb.config.ReactiveMongoAuditingRegistrar.class)
public @interface EnableReactiveMongoAuditing
Annotation to enable auditing in MongoDB using reactive infrastructure via annotation configuration.
- Since:
- 3.1
- Author:
- Mark Paluch
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionConfigures theReactiveAuditorAwarebean to be used to lookup the current principal.Configures aDateTimeProviderbean name that allows customizing the timestamp to 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 theReactiveAuditorAwarebean to be used to lookup the current principal.- Returns:
- empty
Stringby default.
- Default:
- ""
-
setDates
boolean setDatesConfigures whether the creation and modification dates are set. Defaults to true.- Returns:
- true by default.
- Default:
- true
-
modifyOnCreate
boolean modifyOnCreateConfigures whether the entity shall be marked as modified on creation. Defaults to true.- Returns:
- true by default.
- Default:
- true
-
dateTimeProviderRef
String dateTimeProviderRefConfigures aDateTimeProviderbean name that allows customizing the timestamp to be used for setting creation and modification dates.- Returns:
- empty
Stringby default.
- Default:
- ""
-