Class EntityCreatedModifiedDateAuditEventConfiguration


  • @Configurable
    public class EntityCreatedModifiedDateAuditEventConfiguration
    extends java.lang.Object
    Creates and updates entities based on global rules of implementations of AbstractEntity and AbstractEntityAudit. Be aware that this class will cause NullPointerException if BeforeSecurityContext is not set in tests.
    • Field Detail

      • LOG

        protected final org.slf4j.Logger LOG
    • Constructor Detail

      • EntityCreatedModifiedDateAuditEventConfiguration

        public EntityCreatedModifiedDateAuditEventConfiguration()
    • Method Detail

      • createOrUpdate

        public void createOrUpdate​(AbstractEntity entity)
        Run before persisting a new entity.
        Parameters:
        entity - target for persistence