Added cache manager for classes found in entity type
Complement for [ 1784588 ] Use ModelPackage of EntityType to Find Model Class
This commit is contained in:
parent
d53e92512e
commit
8e05d48347
|
@ -223,11 +223,15 @@ public class MTable extends X_AD_Table
|
||||||
if (modelpackage != null)
|
if (modelpackage != null)
|
||||||
{
|
{
|
||||||
Class clazz = getPOclass(entityTypes[i].getModelPackage() + ".M" + Util.replace(tableName, "_", ""));
|
Class clazz = getPOclass(entityTypes[i].getModelPackage() + ".M" + Util.replace(tableName, "_", ""));
|
||||||
if (clazz != null)
|
if (clazz != null) {
|
||||||
|
s_classCache.put(tableName, clazz);
|
||||||
return clazz;
|
return clazz;
|
||||||
|
}
|
||||||
clazz = getPOclass(entityTypes[i].getModelPackage() + ".X_" + tableName);
|
clazz = getPOclass(entityTypes[i].getModelPackage() + ".X_" + tableName);
|
||||||
if (clazz != null)
|
if (clazz != null) {
|
||||||
|
s_classCache.put(tableName, clazz);
|
||||||
return clazz;
|
return clazz;
|
||||||
|
}
|
||||||
s_log.warning("No class for table with it entity: " + tableName);
|
s_log.warning("No class for table with it entity: " + tableName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue