mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
优化resultMap
This commit is contained in:
parent
b7bf356d33
commit
47ef74451e
@ -67,6 +67,10 @@ public class MPJTableInfoHelper {
|
||||
* @return 数据库表反射信息
|
||||
*/
|
||||
public synchronized static TableInfo initTableInfo(Configuration configuration, String currentNamespace, Class<?> clazz) {
|
||||
TableInfo info = TABLE_INFO_CACHE.get(clazz);
|
||||
if (info != null) {
|
||||
return info;
|
||||
}
|
||||
/* 没有获取到缓存信息,则初始化 */
|
||||
TableInfo tableInfo = new TableInfo(clazz);
|
||||
tableInfo.setCurrentNamespace(currentNamespace);
|
||||
|
Loading…
x
Reference in New Issue
Block a user