Package no.nsd.qddt.configuration
Class EntityCreatedModifiedDateAuditEventConfiguration
- java.lang.Object
-
- no.nsd.qddt.configuration.EntityCreatedModifiedDateAuditEventConfiguration
-
@Configurable public class EntityCreatedModifiedDateAuditEventConfiguration extends java.lang.Object
Creates and updates entities based on global rules of implementations ofAbstractEntity
andAbstractEntityAudit
. Be aware that this class will causeNullPointerException
if BeforeSecurityContext is not set in tests.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description EntityCreatedModifiedDateAuditEventConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createOrUpdate​(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
-
-