Fix [2949927] The current Persistence Engine Allow not get I_Table / preserving backward compatibility
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2949927
This commit is contained in:
parent
d473cf3b56
commit
02250a06a3
|
@ -238,11 +238,15 @@ public class MTable extends X_AD_Table
|
||||||
String modelpackage = entityTypes[i].getModelPackage();
|
String modelpackage = entityTypes[i].getModelPackage();
|
||||||
if (modelpackage != null)
|
if (modelpackage != null)
|
||||||
{
|
{
|
||||||
Class<?> clazz = getPOclass(entityTypes[i].getModelPackage() + ".M" + Util.replace(tableName, "_", ""));
|
Class<?> clazz = null;
|
||||||
|
if (! tableName.startsWith("I_"))
|
||||||
|
{
|
||||||
|
clazz = getPOclass(entityTypes[i].getModelPackage() + ".M" + Util.replace(tableName, "_", ""));
|
||||||
if (clazz != null) {
|
if (clazz != null) {
|
||||||
s_classCache.put(tableName, clazz);
|
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);
|
s_classCache.put(tableName, clazz);
|
||||||
|
|
Loading…
Reference in New Issue