mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
close #I6VKDF
This commit is contained in:
parent
3536e0ac74
commit
8daaa330b4
@ -159,7 +159,7 @@ public class QueryEntityProcessor extends AbstractProcessor {
|
|||||||
do {
|
do {
|
||||||
fillPropertyAndColumns(propertyAndColumns, defaultColumns, classElement);
|
fillPropertyAndColumns(propertyAndColumns, defaultColumns, classElement);
|
||||||
classElement = (TypeElement) typeUtils.asElement(classElement.getSuperclass());
|
classElement = (TypeElement) typeUtils.asElement(classElement.getSuperclass());
|
||||||
}while (classElement!= null && "java.lang.Object".equals(classElement.toString()));
|
} while (classElement != null);
|
||||||
|
|
||||||
String entityClassName = entityClassElement.getSimpleName().toString();
|
String entityClassName = entityClassElement.getSimpleName().toString();
|
||||||
tablesContent.append(buildTablesClass(entityClassName, tableName, propertyAndColumns, defaultColumns));
|
tablesContent.append(buildTablesClass(entityClassName, tableName, propertyAndColumns, defaultColumns));
|
||||||
@ -184,7 +184,6 @@ public class QueryEntityProcessor extends AbstractProcessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void fillPropertyAndColumns(Map<String, String> propertyAndColumns, List<String> defaultColumns, TypeElement classElement) {
|
private void fillPropertyAndColumns(Map<String, String> propertyAndColumns, List<String> defaultColumns, TypeElement classElement) {
|
||||||
for (Element fieldElement : classElement.getEnclosedElements()) {
|
for (Element fieldElement : classElement.getEnclosedElements()) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user