Package no.nsd.qddt.configuration
Class EntityCreatedModifiedDateAuditEventConfiguration
- java.lang.Object
-
- no.nsd.qddt.configuration.EntityCreatedModifiedDateAuditEventConfiguration
-
@Configurable public class EntityCreatedModifiedDateAuditEventConfiguration extends java.lang.ObjectCreates and updates entities based on global rules of implementations ofAbstractEntityandAbstractEntityAudit. Be aware that this class will causeNullPointerExceptionif BeforeSecurityContext is not set in tests.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description EntityCreatedModifiedDateAuditEventConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateOrUpdate(AbstractEntity entity)Run before persisting a new entity.
-
-
-
Method Detail
-
createOrUpdate
public void createOrUpdate(AbstractEntity entity)
Run before persisting a new entity.- Parameters:
entity- target for persistence
-
-