Annotation Interface EnableNeo4jAuditing
@Inherited
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@Import(org.springframework.data.neo4j.config.Neo4jAuditingRegistrar.class)
public @interface EnableNeo4jAuditing
Annotation to enable auditing for SDN entities via annotation configuration.
- Since:
- 6.0
- Author:
- Michael J. Simons
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionConfigures theAuditorAwarebean to be used to look up the current principal.Configures aDateTimeProviderbean name that allows customizing actual date time class 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 theAuditorAwarebean to be used to look up the current principal.- Returns:
- The name of the
AuditorAwarebean to be used to look up the current principal.
- Default:
- ""
-
setDates
boolean setDatesConfigures whether the creation and modification dates are set. Defaults to true.- Returns:
- whether to set the creation and modification dates.
- Default:
- true
-
modifyOnCreate
boolean modifyOnCreateConfigures whether the entity shall be marked as modified on creation. Defaults to true.- Returns:
- whether to mark the entity as modified on creation.
- Default:
- true
-
dateTimeProviderRef
String dateTimeProviderRefConfigures aDateTimeProviderbean name that allows customizing actual date time class to be used for setting creation and modification dates.- Returns:
- The name of the
DateTimeProviderbean to provide the current date time for creation and modification dates.
- Default:
- ""
-