Package cn.xuanyuanli.core.lang
Interface BaseEntity
- All Superinterfaces:
Serializable
entity的基类,所有entity都要继承这个类
- Author:
- John Li jujubeframework@163.com
-
Field Details
-
STRING_NULL
String的null值- See Also:
-
-
Method Details
-
cloneSelf
default <T> T cloneSelf()clone自己- Type Parameters:
T- 泛型- Returns:
- self type object
-
toRecord
将Bean转换为Record,会把Bean中驼峰命名的字段转为下划线命名- Returns:
- Record
-
toMap
将Bean转换为Map,直接转换,不涉及到命名方式的变动 -
toMapFilterNull
将Bean转换为Map,直接转换,不涉及到命名方式的变动.过滤null值的key -
toBO
将Bean赋值给对象类型的BO- Type Parameters:
T- 要转换的类型- Parameters:
cl- class- Returns:
- bo
-