public class EntityUtils extends Object
| Constructor and Description |
|---|
EntityUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
isPKNotNull(T entity,
String field)
根据主键属性,判断主键是否值为空
|
static <T> void |
setCreatAndUpdatInfo(T entity) |
static <T> void |
setCreateInfo(T entity)
快速将bean的creator、created附上相关值
|
static <T> void |
setUpdatedInfo(T entity)
快速将bean的modifier、modified附上相关值
|
public static <T> void setCreateInfo(T entity)
T - 对象entity - 反射对象public static <T> void setUpdatedInfo(T entity)
T - 对象entity - 反射对象public static <T> void setCreatAndUpdatInfo(T entity)
public static <T> boolean isPKNotNull(T entity,
String field)
T - 对象entity - 反射对象field - 属性Copyright © 2019. All rights reserved.