Class BaseEntity

java.lang.Object
io.r2mo.dbe.mybatisplus.core.domain.BaseEntity
All Implemented Interfaces:
io.r2mo.typed.domain.BaseAudit, io.r2mo.typed.domain.BaseScope, Serializable

public class BaseEntity extends Object implements io.r2mo.typed.domain.BaseScope, io.r2mo.typed.domain.BaseAudit, Serializable
Entity基类 核心基类,用于处理通用性字段专用,此处的核心类可以作为基础字段保留,以保证子类的一致性,针对当前数据本身有一个基本归属, 基本归属主要包含如下
     - id         / 主键
     - code       / 编码(随机10位字符串)
     - createdAt  / 创建时间
     - createdBy  / 创建人
     - updatedAt  / 更新时间
     - updatedBy  / 更新人

     - enabled    / 是否启用
     - language   / 语言
     - version    / 版本
     - metadata   / 元配置

     - appId / 所属应用
     - tenantId / 所属租户
 
See Also:
  • Constructor Details

    • BaseEntity

      public BaseEntity()
  • Method Details

    • putExtension

      public void putExtension(String key, Object value)
    • getExtension

      public Map<String,Object> getExtension()
    • ignoreExtension

      protected Set<String> ignoreExtension()
    • app

      public void app(String appId)
      Specified by:
      app in interface io.r2mo.typed.domain.BaseScope
    • app

      public String app()
      Specified by:
      app in interface io.r2mo.typed.domain.BaseScope
    • tenant

      public void tenant(String tenantId)
      Specified by:
      tenant in interface io.r2mo.typed.domain.BaseScope
    • tenant

      public String tenant()
      Specified by:
      tenant in interface io.r2mo.typed.domain.BaseScope
    • dgInfo

      public String dgInfo()