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:
Carlos Ruiz 2010-04-10 00:16:04 +00:00
parent d473cf3b56
commit 02250a06a3
1 changed files with 8 additions and 4 deletions

View File

@ -238,10 +238,14 @@ public class MTable extends X_AD_Table
String modelpackage = entityTypes[i].getModelPackage();
if (modelpackage != null)
{
Class<?> clazz = getPOclass(entityTypes[i].getModelPackage() + ".M" + Util.replace(tableName, "_", ""));
if (clazz != null) {
s_classCache.put(tableName, clazz);
return clazz;
Class<?> clazz = null;
if (! tableName.startsWith("I_"))
{
clazz = getPOclass(entityTypes[i].getModelPackage() + ".M" + Util.replace(tableName, "_", ""));
if (clazz != null) {
s_classCache.put(tableName, clazz);
return clazz;
}
}
clazz = getPOclass(entityTypes[i].getModelPackage() + ".X_" + tableName);
if (clazz != null) {