public abstract class BaseCamelCaseDO extends Object implements Serializable
注意子类使用Lombok重写toString()与equals()和hashCode()方法时,callSuper属性需为true,如下:
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
注意子类使用Lombok生成builder()方法时,需使用@SuperBuilder注解,而非@Builder注解,如下:
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
Modifier and Type | Field and Description |
---|---|
protected LocalDateTime |
createTime
数据插入时间
|
protected Long |
deleteTime
删除时间戳
|
protected Long |
id
主键ID,单表时自增
|
protected Integer |
sortIdx
排序索引
|
protected LocalDateTime |
updateTime
数据更新时间
|
Constructor and Description |
---|
BaseCamelCaseDO() |
protected Long id
protected Integer sortIdx
protected Long deleteTime
默认值为0 == 未删除
一般不作查询展示
protected LocalDateTime createTime
protected LocalDateTime updateTime
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.