|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
300版本,MTABLE.JAVA文件:
开始定义:
/** Special Classes */
private static final String[] s_special = new String[] {
"AD_Element", "org.compiere.model.M_Element",
"AD_Registration", "org.compiere.model.M_Registration",
"AD_Tree", "org.compiere.model.MTree_Base",
"R_Category", "org.compiere.model.MRequestCategory",
"GL_Category", "org.compiere.model.MGLCategory",
"K_Category", "org.compiere.model.MKCategory",
"C_ValidCombination", "org.compiere.model.MAccount",
"C_Phase", "org.compiere.model.MProjectTypePhase",
"C_Task", "org.compiere.model.MProjectTypeTask"
// AD_Attribute_Value, AD_TreeNode
};
在根据表名获取模型类名字:
// Special Naming
for (int i = 0; i < s_special.length; i++)
{
if (s_special[i++].equals(tableName))
{
Class clazz = getPOclass(s_special);
if (clazz != null)
{
s_classCache.put(tableName, clazz);
return clazz;
}
break;
}
}
是用s_special[i++].equals(tableName)相等,返回getPOclass(s_special)的类名,这里应该是用if (s_special.equals(tableName)),返回getPOclass(s_special[i++]);才对吧,大家帮忙看看,多谢了。 |
|