Class BaseEntity

java.lang.Object
com.imyeyu.spring.entity.BaseEntity
All Implemented Interfaces:
Creatable, Deletable, Updatable, Serializable
Direct Known Subclasses:
Entity, UUIDEntity

public class BaseEntity extends Object implements Serializable, Creatable, Updatable, Deletable
基本实体
Version:
2021-11-20 17:45
Author:
夜雨
See Also:
  • Field Details

    • createdAt

      protected Long createdAt
      创建时间
    • updatedAt

      protected Long updatedAt
      更新时间
    • deletedAt

      protected Long deletedAt
      删除时间
  • Constructor Details

    • BaseEntity

      public BaseEntity()
  • Method Details

    • isDeleted

      public boolean isDeleted()
      Description copied from interface: Deletable
      是否已删除
      Specified by:
      isDeleted in interface Deletable
      Returns:
      true 为已删除
    • getCreatedAt

      public Long getCreatedAt()
      创建时间
      Specified by:
      getCreatedAt in interface Creatable
      Returns:
      创建时间
    • getUpdatedAt

      public Long getUpdatedAt()
      更新时间
      Specified by:
      getUpdatedAt in interface Updatable
      Returns:
      更新时间
    • getDeletedAt

      public Long getDeletedAt()
      删除时间
      Specified by:
      getDeletedAt in interface Deletable
      Returns:
      删除时间
    • setCreatedAt

      public void setCreatedAt(Long createdAt)
      创建时间
      Specified by:
      setCreatedAt in interface Creatable
      Parameters:
      createdAt - 创建时间
    • setUpdatedAt

      public void setUpdatedAt(Long updatedAt)
      更新时间
      Specified by:
      setUpdatedAt in interface Updatable
      Parameters:
      updatedAt - 更新时间
    • setDeletedAt

      public void setDeletedAt(Long deletedAt)
      删除时间
      Specified by:
      setDeletedAt in interface Deletable
      Parameters:
      deletedAt - 删除时间
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object