Interface BaseEntity


  • public interface BaseEntity
    Interface for defining the basic entity structure. Any entity implementing this interface will be required to manage basic auditing and tracking information.
    Author:
    ckonstantakis
    • Method Detail

      • getId

        Integer getId()
        Gets the unique identifier for this entity.
        Returns:
        the ID of the entity
      • getDeleteFlag

        boolean getDeleteFlag()
        Gets the delete flag, indicating whether the entity is deleted or not.
        Returns:
        true if the entity is marked as deleted, false otherwise
      • getCreationDate

        Date getCreationDate()
        Gets the creation date of the entity.
        Returns:
        the creation date of the entity
      • getChangeDate

        Date getChangeDate()
        Gets the date when the entity was last modified.
        Returns:
        the last modification date of the entity
      • getCreatedBy

        Integer getCreatedBy()
        Gets the ID of the user who created the entity.
        Returns:
        the ID of the user who created the entity
      • getChangedBy

        Integer getChangedBy()
        Gets the ID of the user who last modified the entity.
        Returns:
        the ID of the user who last modified the entity
      • isNew

        boolean isNew()
        Checks if this entity is newly created.
        Returns:
        true if the entity is new, false otherwise
      • toString

        String toString()
        Provides a string representation of this entity.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the entity