public class Entity extends Object implements Serializable, Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
Class |
clazz
实体类对象
|
String |
comment
表注释
|
Map<String,List<String>> |
compositFieldMap
实体类成员变量
|
List<Property> |
foreignKeyProperties
外键约束字段
|
Property |
id
Id属性
|
List<IndexField> |
indexFieldList
索引列表
|
List<Property> |
properties
属性字段(排除ignore字段和实体包内字段)
|
String |
tableName
原始表名
|
List<Property> |
uniqueProperties
判断记录是否唯一的字段列表
|
| 构造器和说明 |
|---|
Entity() |
| 限定符和类型 | 方法和说明 |
|---|---|
Entity |
clone() |
void |
copyTransientField(Entity target)
复制拷贝transient字段
|
boolean |
equals(Object o) |
String |
getColumnNameByFieldName(String field)
根据字段名查询数据库列名,只返回列名
|
String |
getCompositeFieldName(String className)
获取对应实体类成员变量
|
IndexField |
getIndexFieldByIndexName(String indexName)
根据索引名获取索引
|
Property |
getPropertyByFieldName(String field)
根据字段名返回对应属性
|
int |
hashCode() |
String |
toString() |
public transient Class clazz
public String tableName
public String comment
public Property id
public List<IndexField> indexFieldList
public IndexField getIndexFieldByIndexName(String indexName)
public void copyTransientField(Entity target)
Copyright © 2023. All rights reserved.