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:
- EnableMongoAuditing.java
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringauditorAwareRefConfigures theAuditorAwarebean to be used to lookup the current principal.StringdateTimeProviderRefConfigures aDateTimeProviderbean name that allows customizing the DateTime to be used for setting creation and modification dates.booleanmodifyOnCreateConfigures whether the entity shall be marked as modified on creation.booleansetDatesConfigures whether the creation and modification dates are set.
-
-
-
Element Detail
-
auditorAwareRef
String auditorAwareRef
Configures theAuditorAwarebean to be used to lookup the current principal.- Returns:
- default empty string
- Default:
- ""
-
-
-
dateTimeProviderRef
String dateTimeProviderRef
Configures aDateTimeProviderbean name that allows customizing the DateTime to be used for setting creation and modification dates.- Returns:
- default empty string
- Default:
- ""
-
-