From 7f24cb72e10679a3b98904d99ad649197f372024 Mon Sep 17 00:00:00 2001 From: ogomezislas Date: Thu, 11 Feb 2010 20:30:14 +0000 Subject: [PATCH] The current Persistence Engine Allow not get I_Table kind regards Victor Perez www.e-evolution.com Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2949927 --- base/src/org/compiere/model/MTable.java | 27 +++++++++++++------------ 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/base/src/org/compiere/model/MTable.java b/base/src/org/compiere/model/MTable.java index 4146d1b05a..36a41bfba7 100644 --- a/base/src/org/compiere/model/MTable.java +++ b/base/src/org/compiere/model/MTable.java @@ -40,7 +40,10 @@ import org.compiere.util.Util; *
  • 2007-02-01 - teo_sarca - [ 1648850 ] MTable.getClass works incorrect for table "Fact_Acct" * * * @author Jorg Janke * @version $Id: MTable.java,v 1.3 2006/07/30 00:58:04 jjanke Exp $ @@ -188,18 +191,6 @@ public class MTable extends X_AD_Table if (tableName == null || tableName.endsWith("_Trl")) return null; - // Import Tables (Name conflict) - if (tableName.startsWith("I_")) - { - Class clazz = getPOclass("org.compiere.model.X_" + tableName); - if (clazz != null) - return clazz; - s_log.warning("No class for table: " + tableName); - return null; - } - - - //check cache Class cache = s_classCache.get(tableName); if (cache != null) @@ -255,6 +246,16 @@ public class MTable extends X_AD_Table } //end [ 1784588 ] + // Import Tables (Name conflict) + if (tableName.startsWith("I_")) + { + Class clazz = getPOclass("org.compiere.model.X_" + tableName); + if (clazz != null) + return clazz; + s_log.warning("No class for table: " + tableName); + return null; + } + // Strip table name prefix (e.g. AD_) Customizations are 3/4 String className = tableName; int index = className.indexOf('_');