Package org.springframework.data.auditing
@NullMarked
package org.springframework.data.auditing
General support for entity auditing.
-
ClassDescriptionInterface to abstract the ways setting the auditing information can be implemented.A factory to lookup
AuditableBeanWrappers.Auditing handler to mark entity objects created and modified.Support class to implement auditing handlers.DefaultDateTimeProvidersimply creating newLocalDateTimeinstances for each method call.SPI to calculate the current time to be used when auditing.AuditingHandlerextension that usesPersistentEntity.isNew(Object)to expose a genericIsNewAwareAuditingHandler.markAudited(Object)method that will route calls toAuditingHandler.markCreated(Object)orAuditingHandler.markModified(Object)based on theIsNewStrategydetermined from the factory.AuditableBeanWrapperFactorythat will create amAuditableBeanWrapperusing mapping information obtained from aMappingContextto detect auditing configuration and eventually invoking setting the auditing values.Auditing handler to mark entity objects created and modified.AuditingHandlerextension that usesPersistentEntity.isNew(Object)to expose a genericReactiveIsNewAwareAuditingHandler.markAudited(Object)method that will route calls toReactiveAuditingHandler.markCreated(Object)orReactiveAuditingHandler.markModified(Object)based on theIsNewStrategydetermined from the factory.