Annotation Interface EnableReactiveCassandraAuditing
@Inherited
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@Import(org.springframework.data.cassandra.config.ReactiveCassandraAuditingRegistrar.class)
public @interface EnableReactiveCassandraAuditing
Annotation to enable auditing in Cassandra using reactive infrastructure via annotation configuration.
- Since:
- 3.1
- Author:
- Mark Paluch
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionConfigures theReactiveAuditorAware
bean to be used to lookup the current principal.Configures aDateTimeProvider
bean name that allows customizing theTemporalAccessor
to be used for setting creation and modification dates.boolean
Configures whether the entity shall be marked as modified on creation.boolean
Configures whether the creation and modification dates are set.
-
Element Details
-
auditorAwareRef
String auditorAwareRefConfigures theReactiveAuditorAware
bean to be used to lookup the current principal.- Returns:
- Default:
- ""
-
setDates
boolean setDatesConfigures whether the creation and modification dates are set. Defaults to true.- Returns:
- Default:
- true
-
modifyOnCreate
boolean modifyOnCreateConfigures whether the entity shall be marked as modified on creation. Defaults to true.- Returns:
- Default:
- true
-
dateTimeProviderRef
String dateTimeProviderRefConfigures aDateTimeProvider
bean name that allows customizing theTemporalAccessor
to be used for setting creation and modification dates.- Returns:
- Default:
- ""
-