Class BaseMajoranaEntity

java.lang.Object
com.majorana.maj_orm.entities.ex1.BaseMajoranaEntity

public abstract class BaseMajoranaEntity extends Object
The base entity any Maj DB entity is a super class of include integer id for sql dbs and a UUID for cassandra and a created, modified and deleted dates to provide a audit trail of usage of the data
  • Field Details

    • id

      public int id
    • uuid

      public UUID uuid
    • deleted

      public boolean deleted
    • deletedAt

      public LocalDateTime deletedAt
    • createdByUserid

      public int createdByUserid
    • updatedByUserid

      public int updatedByUserid
    • created

      public LocalDateTime created
    • updated

      public LocalDateTime updated
    • createdByUserEmail

      public transient String createdByUserEmail
    • updatedByUserEmail

      public transient String updatedByUserEmail
  • Constructor Details

    • BaseMajoranaEntity

      public BaseMajoranaEntity()
  • Method Details

    • getTableName

      public abstract String getTableName()
    • getBaseFields

      public String getBaseFields()
    • getFields

      public abstract String getFields()
    • getUuid

      public UUID getUuid()
    • setUuid

      public void setUuid(UUID uuid)
    • getId

      public int getId()
    • setId

      public void setId(int id)
    • isDeleted

      public boolean isDeleted()
    • setDeleted

      public void setDeleted(boolean deleted)
    • getCreatedByUserid

      public int getCreatedByUserid()
    • setCreatedByUserid

      public void setCreatedByUserid(int createdByUserid)
    • getCreated

      public LocalDateTime getCreated()
    • setCreated

      public void setCreated(LocalDateTime created)
    • getUpdated

      public LocalDateTime getUpdated()
    • setUpdated

      public void setUpdated(LocalDateTime updated)
    • getCreatedByUserEmail

      public String getCreatedByUserEmail()
    • setCreatedByUserEmail

      public void setCreatedByUserEmail(String createdByUserEmail)
    • getDeletedAt

      public LocalDateTime getDeletedAt()
    • setDeletedAt

      public void setDeletedAt(LocalDateTime deletedAt)
    • getUpdatedByUserid

      public int getUpdatedByUserid()
    • setUpdatedByUserid

      public void setUpdatedByUserid(int updatedByUserid)
    • getUpdatedByUserEmail

      public String getUpdatedByUserEmail()
    • setUpdatedByUserEmail

      public void setUpdatedByUserEmail(String updatedByUserEmail)
    • toString

      public String toString()
      Overrides:
      toString in class Object