|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Inherited @Documented @Target(value=TYPE) @Retention(value=RUNTIME) @Import(value=org.springframework.data.mongodb.config.MongoAuditingRegistrar.class) public @interface EnableMongoAuditing
Annotation to enable auditing in MongoDB via annotation configuration.
| Optional Element Summary | |
|---|---|
String |
auditorAwareRef
Configures the AuditorAware bean to be used to lookup the current principal. |
String |
dateTimeProviderRef
Configures a DateTimeProvider bean name that allows customizing the org.joda.time.DateTime to be
used for setting creation and modification dates. |
boolean |
modifyOnCreate
Configures whether the entity shall be marked as modified on creation. |
boolean |
setDates
Configures whether the creation and modification dates are set. |
public abstract String auditorAwareRef
AuditorAware bean to be used to lookup the current principal.
public abstract boolean setDates
public abstract boolean modifyOnCreate
public abstract String dateTimeProviderRef
DateTimeProvider bean name that allows customizing the org.joda.time.DateTime to be
used for setting creation and modification dates.
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||