mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
解决实体类在不同包名下,无法初始化问题
Signed-off-by: zhijieqing <443712+hezhijie@user.noreply.gitee.com>
This commit is contained in:
parent
7c9d4efe5b
commit
455feea5f7
@ -53,7 +53,7 @@ public class TableDefs implements Serializable {
|
||||
|
||||
|
||||
public static TableDef getTableDef(Class<?> entityClass, String tableNameWithSchema) {
|
||||
if (TABLE_DEF_MAP.isEmpty()) {
|
||||
if (!TABLE_DEF_MAP.containsKey(tableNameWithSchema)) {
|
||||
init(entityClass.getPackage().getName());
|
||||
}
|
||||
return TABLE_DEF_MAP.get(tableNameWithSchema);
|
||||
@ -61,7 +61,7 @@ public class TableDefs implements Serializable {
|
||||
|
||||
|
||||
public static QueryColumn getQueryColumn(Class<?> entityClass, String tableNameWithSchema, String column) {
|
||||
if (TABLE_DEF_MAP.isEmpty()) {
|
||||
if (!TABLE_DEF_MAP.containsKey(tableNameWithSchema)) {
|
||||
init(entityClass.getPackage().getName());
|
||||
}
|
||||
Map<String, QueryColumn> queryColumnMap = QUERY_COLUMN_MAP.get(tableNameWithSchema);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user