Annotation Type EnableCosmosAuditing
@Inherited
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@Import(com.azure.spring.data.cosmos.core.mapping.CosmosAuditingRegistrar.class)
public @interface EnableCosmosAuditing
Adapted from spring-data-mongodb
- See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionConfigures theAuditorAware
bean to be used to lookup the current principal.Configures aDateTimeProvider
bean name that allows customizing the DateTime 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 theAuditorAware
bean to be used to lookup the current principal.- Returns:
- default empty string
- Default:
- ""
-
setDates
boolean setDatesConfigures whether the creation and modification dates are set. Defaults to true.- Returns:
- default true
- Default:
- true
-
modifyOnCreate
boolean modifyOnCreateConfigures whether the entity shall be marked as modified on creation. Defaults to true.- Returns:
- default true
- Default:
- true
-
dateTimeProviderRef
String dateTimeProviderRefConfigures aDateTimeProvider
bean name that allows customizing the DateTime to be used for setting creation and modification dates.- Returns:
- default empty string
- Default:
- ""
-