Class AbstractAuditableEntity

java.lang.Object
de.xima.fc.certificate.ms.impl.dao.entities.AbstractAuditableEntity
All Implemented Interfaces:
IAuditableEntity
Direct Known Subclasses:
CertificateEntity, KeyPairEntity, KeyStoreEntity

@MappedSuperclass public abstract class AbstractAuditableEntity extends Object implements IAuditableEntity
Abstract base class for auditable entities.
  • Constructor Details

    • AbstractAuditableEntity

      public AbstractAuditableEntity()
  • Method Details

    • onCreate

      protected void onCreate()
      Pre persist hook to set the creation date.
    • onUpdate

      protected void onUpdate()
      Pre update hook to set the last modification date.
    • getCreatedAt

      public Instant getCreatedAt()
      Description copied from interface: IAuditableEntity
      Gets the creation date of the entity.
      Specified by:
      getCreatedAt in interface IAuditableEntity
      Returns:
      the creation date
    • getUpdatedAt

      public Instant getUpdatedAt()
      Description copied from interface: IAuditableEntity
      Gets the last modification date of the entity.
      Specified by:
      getUpdatedAt in interface IAuditableEntity
      Returns:
      the last modification date
    • setCreatedAt

      public void setCreatedAt(Instant createdAt)
    • setUpdatedAt

      public void setUpdatedAt(Instant updatedAt)