public abstract class BaseSnakeCaseDO 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 |
create_time
数据插入时间
|
protected Long |
delete_time
删除时间戳
|
protected Long |
id
表自增ID
|
protected Integer |
sort_idx
排序索引
|
protected LocalDateTime |
update_time
数据更新时间
|
Constructor and Description |
---|
BaseSnakeCaseDO() |
protected Long id
protected Integer sort_idx
protected Long delete_time
默认值为0 == 未删除
一般不作查询展示
protected LocalDateTime create_time
protected LocalDateTime update_time
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.