Class NumeralIdBaseEntity

java.lang.Object
tech.riemann.nif.nutz.dao.service.entity.Entity
tech.riemann.nif.plus.BaseEntity
tech.riemann.nif.plus.NumeralIdBaseEntity
All Implemented Interfaces:
Serializable

public class NumeralIdBaseEntity extends BaseEntity
数字ID基础实体类

继承自BaseEntity,添加自增数字类型的主键ID字段

适用于使用数据库自增ID作为主键的实体类

支持MyBatis-Plus和Nutz DAO双框架的ID生成策略

Author:
Kerbores(kerbores@riemann.tech)
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class tech.riemann.nif.nutz.dao.service.entity.Entity

    tech.riemann.nif.nutz.dao.service.entity.Entity.EntityBuilder<C,B>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Long
    主键ID

    Fields inherited from class BaseEntity

    createdBy, createdTime, updatedBy, updatedTime
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class tech.riemann.nif.nutz.dao.service.entity.Entity

    builder, canEqual, equals, exchange, hashCode, toString

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      @Id @TableId(value="id", type=AUTO) protected Long id
      主键ID

      使用数据库自增策略生成的数字类型主键

  • Constructor Details

    • NumeralIdBaseEntity

      public NumeralIdBaseEntity()