| Package | Description |
|---|---|
| tk.mybatis.mapper.entity | |
| tk.mybatis.mapper.mapperhelper | |
| tk.mybatis.mapper.mapperhelper.resolve |
| Modifier and Type | Method and Description |
|---|---|
EntityField |
EntityColumn.getEntityField() |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityField.copyFromPropertyDescriptor(EntityField other)
先创建field,然后可以通过该方法获取property等属性
|
void |
EntityColumn.setEntityField(EntityField entityField) |
| Modifier and Type | Method and Description |
|---|---|
static List<EntityField> |
FieldHelper.getAll(Class<?> entityClass)
获取全部的属性,包含字段和方法
|
static List<EntityField> |
FieldHelper.getFields(Class<?> entityClass)
获取全部的Field
|
static List<EntityField> |
FieldHelper.getProperties(Class<?> entityClass)
获取全部的属性,通过方法名获取
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultEntityResolve.processField(EntityTable entityTable,
EntityField field,
Config config,
Style style)
处理字段
|
protected void |
DefaultEntityResolve.processKeyGenerator(EntityTable entityTable,
EntityField field,
EntityColumn entityColumn)
处理主键策略
|
protected void |
DefaultEntityResolve.processOrderBy(EntityTable entityTable,
EntityField field,
EntityColumn entityColumn)
处理排序
|
Copyright © 2018. All rights reserved.