This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user