@MappedSuperclass public class BaseEntity extends Tracer
Entity 基本信息.
| Modifier and Type | Field and Description |
|---|---|
protected String |
created |
protected String |
creator |
protected String |
modified |
protected String |
modifier |
protected Integer |
pageNo |
protected Integer |
pageSize |
protected String |
status |
x_child_Id, x_local_ip, x_remote_ip, x_span_id, x_trace_idx_user_code, x_user_id, x_user_name| Constructor and Description |
|---|
BaseEntity() |
| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
isPKNotNull(T entity,
String field)
根据主键属性,判断主键是否值为空
|
<T> void |
setCreatAndUpdatInfo(T entity) |
<T> void |
setCreateInfo(T entity)
快速将bean的creator、created附上相关值
|
<T> void |
setUpdatedInfo(T entity)
快速将bean的modifier、modified附上相关值
|
protected String status
protected String creator
protected String created
protected String modifier
protected String modified
protected Integer pageNo
protected Integer pageSize
public <T> void setCreateInfo(T entity)
T - 对象entity - 反射对象public <T> void setUpdatedInfo(T entity)
T - 对象entity - 反射对象public <T> void setCreatAndUpdatInfo(T entity)
public <T> boolean isPKNotNull(T entity,
String field)
T - 对象entity - 反射对象field - 属性Copyright © 2019. All rights reserved.