public class BaseDO extends Object implements Serializable
该类为 [DO] 层基类, 所有 [DO] 层必须继承此类
该类中指定了映射到数据库中每张表的 id ID / createTime 创建时间 / modifyTime 最后修改时间
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CREATE_TIME |
static Class<LocalDateTime> |
CREATE_TIME_CLASS |
static String |
ID |
static Class<Long> |
ID_CLASS |
static String |
LOGIC_DELETE |
static Class<Boolean> |
LOGIC_DELETE_CLASS |
static String |
MODIFY_TIME |
static Class<LocalDateTime> |
MODIFY_TIME_CLASS |
static String |
VERSION |
static Class<Integer> |
VERSION_CLASS |
| 构造器和说明 |
|---|
BaseDO() |
| 限定符和类型 | 方法和说明 |
|---|---|
LocalDateTime |
getCreateTime() |
Long |
getId() |
LocalDateTime |
getModifyTime() |
void |
setCreateTime(LocalDateTime createTime) |
void |
setId(Long id) |
void |
setModifyTime(LocalDateTime modifyTime) |
String |
toString() |
public static final Class<LocalDateTime> CREATE_TIME_CLASS
public static final Class<LocalDateTime> MODIFY_TIME_CLASS
public Long getId()
public void setId(Long id)
public LocalDateTime getCreateTime()
public void setCreateTime(LocalDateTime createTime)
public LocalDateTime getModifyTime()
public void setModifyTime(LocalDateTime modifyTime)
Copyright © 2021 HaiChuang Inc.. All rights reserved.