优化resultMap

This commit is contained in:
admin 2021-06-09 18:10:33 +08:00
parent b7bf356d33
commit 47ef74451e

View File

@ -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);