This commit is contained in:
Redkale
2018-03-30 17:25:57 +08:00
parent b14e14659c
commit 90562ebd04

View File

@@ -147,11 +147,11 @@ public final class EntityInfo<T> {
rs = entityInfos.get(clazz); rs = entityInfos.get(clazz);
if (rs == null) { if (rs == null) {
rs = new EntityInfo(clazz, cacheForbidden, conf, source, fullloader); rs = new EntityInfo(clazz, cacheForbidden, conf, source, fullloader);
entityInfos.put(clazz, rs);
if (rs.cache != null) { if (rs.cache != null) {
if (fullloader == null) throw new IllegalArgumentException(clazz.getName() + " auto loader is illegal"); if (fullloader == null) throw new IllegalArgumentException(clazz.getName() + " auto loader is illegal");
rs.cache.fullLoad(); rs.cache.fullLoad();
} }
entityInfos.put(clazz, rs);
} }
return rs; return rs;
} }