IDEMPIERE-304 Remove PREFERENCETYPE_AD_Reference_ID in generated X_ class. Only generate for official id.
This commit is contained in:
parent
d1dea0fd02
commit
1dc923273d
|
@ -37,6 +37,7 @@ import java.util.logging.Level;
|
||||||
|
|
||||||
import org.adempiere.exceptions.DBException;
|
import org.adempiere.exceptions.DBException;
|
||||||
import org.compiere.Adempiere;
|
import org.compiere.Adempiere;
|
||||||
|
import org.compiere.model.MTable;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.DisplayType;
|
import org.compiere.util.DisplayType;
|
||||||
|
@ -601,9 +602,12 @@ public class ModelClassGenerator
|
||||||
String columnName)
|
String columnName)
|
||||||
{
|
{
|
||||||
StringBuilder retValue = new StringBuilder();
|
StringBuilder retValue = new StringBuilder();
|
||||||
|
if (AD_Reference_ID <= MTable.MAX_OFFICIAL_ID)
|
||||||
|
{
|
||||||
retValue.append("\n\t/** ").append(columnName).append(" AD_Reference_ID=").append(AD_Reference_ID) .append(" */")
|
retValue.append("\n\t/** ").append(columnName).append(" AD_Reference_ID=").append(AD_Reference_ID) .append(" */")
|
||||||
.append("\n\tpublic static final int ").append(columnName.toUpperCase())
|
.append("\n\tpublic static final int ").append(columnName.toUpperCase())
|
||||||
.append("_AD_Reference_ID=").append(AD_Reference_ID).append(";");
|
.append("_AD_Reference_ID=").append(AD_Reference_ID).append(";");
|
||||||
|
}
|
||||||
//
|
//
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
StringBuilder values = new StringBuilder("Reference_ID=")
|
StringBuilder values = new StringBuilder("Reference_ID=")
|
||||||
|
|
Loading…
Reference in New Issue