Class UUIDBaseEntity

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

public class UUIDBaseEntity extends BaseEntity
UUID基础实体类(MyBatis-Flex版本)

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

适用于使用UUID作为主键的实体类,插入时自动生成UUID

支持MyBatis-Flex和Nutz DAO双框架的UUID生成策略

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 String
    主键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

      @Name @PrevInsert(els=@EL("uuid()")) protected String id
      主键ID

      使用UUID策略生成的字符串类型主键,插入时自动生成

  • Constructor Details

    • UUIDBaseEntity

      public UUIDBaseEntity()