* Restore compatibility with compiere plugins

This commit is contained in:
Heng Sin Low 2007-01-29 02:43:12 +00:00
parent 044def8767
commit d834fdccae
1 changed files with 7 additions and 1 deletions

View File

@ -203,10 +203,16 @@ public class MTable extends X_AD_Table
return clazz;
}
// Default Extension
// Adempiere Extension
Class clazz = getPOclass("adempiere.model.X_" + tableName);
if (clazz != null)
return clazz;
//hengsin - allow compatibility with compiere plugins
//Compiere Extension
clazz = getPOclass("compiere.model.X_" + tableName);
if (clazz != null)
return clazz;
// Default
clazz = getPOclass("org.compiere.model.X_" + tableName);