mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix: TableRef 解析 VO 之后覆盖 tableInfoMap 缓存中原有 Entity 的问题。
This commit is contained in:
parent
39a6431417
commit
00b28a052d
@ -140,7 +140,8 @@ public class TableInfoFactory {
|
||||
public static TableInfo ofEntityClass(Class<?> entityClass) {
|
||||
return MapUtil.computeIfAbsent(entityTableMap, entityClass, aClass -> {
|
||||
TableInfo tableInfo = createTableInfo(entityClass);
|
||||
tableInfoMap.put(tableInfo.getTableNameWithSchema(), tableInfo);
|
||||
// Entity 和 VO 有相同的表名,以第一次放入的 Entity 解析的 TableInfo 为主
|
||||
tableInfoMap.putIfAbsent(tableInfo.getTableNameWithSchema(), tableInfo);
|
||||
return tableInfo;
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user