Revert revision 4360 [ 1882470 ] Generate Class Model: setter for lookup fields issue

to solve [ 1944848 ] Generate Inv from SO - wrong contact
This commit is contained in:
Carlos Ruiz 2008-04-25 18:34:37 +00:00
parent 92db21a4f2
commit 1a8fae01b2
94 changed files with 111 additions and 114 deletions

View File

@ -67,7 +67,7 @@ public class GenerateModel
*/
public static void main (String[] args)
{
Adempiere.startupEnvironment(false);
Adempiere.startupEnvironment((args.length > 4 && args[4].equals("Client")));
CLogMgt.setLevel(Level.FINE);
log.info("Generate Model $Revision: 1.42 $");
log.info("----------------------------------");

View File

@ -39,7 +39,6 @@ import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.DisplayType;
import org.compiere.util.Env;
import org.compiere.util.Util;
/**
* Generate Model Classes extending PO.
@ -55,7 +54,6 @@ import org.compiere.util.Util;
* <li>better formating of generated source
* <li>[ 1787876 ] ModelClassGenerator: list constants should be ordered
* <li>FR [ 1803309 ] Model generator: generate get method for Search cols
* <li>BF [ 1882470 ] Generate Class Model: setter for lookup fields issue
* @author Victor Perez, e-Evolution
* <li>FR [ 1785001 ] Using ModelPackage of EntityType to Generate Model Class
*/
@ -535,18 +533,17 @@ public class ModelClassGenerator
{
if (columnName.endsWith("_ID"))
{
int firstOK = 1; // Valid ID 0
if (columnName.equals("AD_Client_ID") || columnName.equals("AD_Org_ID")
|| columnName.equals("Record_ID") || columnName.equals("C_DocType_ID")
|| columnName.equals("Node_ID") || columnName.equals("AD_Role_ID")
|| columnName.equals("AD_User_ID")
|| columnName.equals("M_AttributeSet_ID") || columnName.equals("M_AttributeSetInstance_ID"))
firstOK = 0;
//
int firstOK = 1;
if (isMandatory) // check mandatory ID
{
if (columnName.equals("AD_Client_ID") || columnName.equals("AD_Org_ID")
|| columnName.equals("Record_ID") || columnName.equals("C_DocType_ID")
|| columnName.equals("Node_ID") || columnName.equals("AD_Role_ID")
|| columnName.equals("M_AttributeSet_ID") || columnName.equals("M_AttributeSetInstance_ID"))
firstOK = 0;
sb.append("\t\tif (").append (columnName).append (" < ").append(firstOK).append(")").append(NL)
.append("\t\t\t throw new IllegalArgumentException (\"").append(columnName).append(" is mandatory.\");").append(NL);
.append("\t\t\t throw new IllegalArgumentException (\"")
.append(columnName).append(" is mandatory.\");").append(NL);
}
else // set optional _ID to null if 0
sb.append("\t\tif (").append (columnName).append (" < ").append(firstOK).append(") ").append(NL)

View File

@ -209,7 +209,7 @@ public class X_AD_AccessLog extends PO implements I_AD_AccessLog, I_Persistent
*/
public void setRecord_ID (int Record_ID)
{
if (Record_ID < 0)
if (Record_ID < 1)
set_Value (COLUMNNAME_Record_ID, null);
else
set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));

View File

@ -155,7 +155,7 @@ public class X_AD_AlertRecipient extends PO implements I_AD_AlertRecipient, I_Pe
*/
public void setAD_Role_ID (int AD_Role_ID)
{
if (AD_Role_ID < 0)
if (AD_Role_ID < 1)
set_Value (COLUMNNAME_AD_Role_ID, null);
else
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
@ -194,7 +194,7 @@ public class X_AD_AlertRecipient extends PO implements I_AD_AlertRecipient, I_Pe
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -342,7 +342,7 @@ public class X_AD_Archive extends PO implements I_AD_Archive, I_Persistent
*/
public void setRecord_ID (int Record_ID)
{
if (Record_ID < 0)
if (Record_ID < 1)
set_Value (COLUMNNAME_Record_ID, null);
else
set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));

View File

@ -158,7 +158,7 @@ public class X_AD_AttachmentNote extends PO implements I_AD_AttachmentNote, I_Pe
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -894,7 +894,7 @@ public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent
*/
public void setRecord_ID (int Record_ID)
{
if (Record_ID < 0)
if (Record_ID < 1)
set_ValueNoCheck (COLUMNNAME_Record_ID, null);
else
set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));

View File

@ -156,7 +156,7 @@ public class X_AD_LdapAccess extends PO implements I_AD_LdapAccess, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_ValueNoCheck (COLUMNNAME_AD_User_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -188,7 +188,7 @@ public class X_AD_Note extends PO implements I_AD_Note, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
@ -318,7 +318,7 @@ public class X_AD_Note extends PO implements I_AD_Note, I_Persistent
*/
public void setRecord_ID (int Record_ID)
{
if (Record_ID < 0)
if (Record_ID < 1)
set_ValueNoCheck (COLUMNNAME_Record_ID, null);
else
set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));

View File

@ -165,7 +165,7 @@ public class X_AD_PInstance extends PO implements I_AD_PInstance, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -313,7 +313,7 @@ public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Comm
*/
public void setAD_Role_ID (int AD_Role_ID)
{
if (AD_Role_ID < 0)
if (AD_Role_ID < 1)
set_Value (COLUMNNAME_AD_Role_ID, null);
else
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));

View File

@ -495,7 +495,7 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta
*/
public void setAD_Role_ID (int AD_Role_ID)
{
if (AD_Role_ID < 0)
if (AD_Role_ID < 1)
set_Value (COLUMNNAME_AD_Role_ID, null);
else
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));

View File

@ -118,7 +118,7 @@ public class X_AD_Preference extends PO implements I_AD_Preference, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -133,7 +133,7 @@ public class X_AD_Private_Access extends PO implements I_AD_Private_Access, I_Pe
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -416,7 +416,7 @@ public class X_AD_Registration extends PO implements I_AD_Registration, I_Persis
*/
public void setRecord_ID (int Record_ID)
{
if (Record_ID < 0)
if (Record_ID < 1)
set_ValueNoCheck (COLUMNNAME_Record_ID, null);
else
set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));

View File

@ -95,7 +95,7 @@ public class X_AD_SchedulerRecipient extends PO implements I_AD_SchedulerRecipie
*/
public void setAD_Role_ID (int AD_Role_ID)
{
if (AD_Role_ID < 0)
if (AD_Role_ID < 1)
set_Value (COLUMNNAME_AD_Role_ID, null);
else
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
@ -194,7 +194,7 @@ public class X_AD_SchedulerRecipient extends PO implements I_AD_SchedulerRecipie
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -96,7 +96,7 @@ public class X_AD_Session extends PO implements I_AD_Session, I_Persistent
*/
public void setAD_Role_ID (int AD_Role_ID)
{
if (AD_Role_ID < 0)
if (AD_Role_ID < 1)
set_Value (COLUMNNAME_AD_Role_ID, null);
else
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));

View File

@ -620,7 +620,7 @@ public class X_AD_System extends PO implements I_AD_System, I_Persistent
*/
public void setRecord_ID (int Record_ID)
{
if (Record_ID < 0)
if (Record_ID < 1)
set_Value (COLUMNNAME_Record_ID, null);
else
set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));

View File

@ -134,7 +134,7 @@ public class X_AD_TreeBar extends PO implements I_AD_TreeBar, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -109,7 +109,7 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -117,7 +117,7 @@ public class X_AD_UserBPAccess extends PO implements I_AD_UserBPAccess, I_Persis
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -125,7 +125,7 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste
*/
public void setAD_Role_ID (int AD_Role_ID)
{
if (AD_Role_ID < 0)
if (AD_Role_ID < 1)
set_Value (COLUMNNAME_AD_Role_ID, null);
else
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
@ -183,7 +183,7 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -117,7 +117,7 @@ public class X_AD_UserMail extends PO implements I_AD_UserMail, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -195,7 +195,7 @@ public class X_AD_UserQuery extends PO implements I_AD_UserQuery, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -95,7 +95,7 @@ public class X_AD_User_OrgAccess extends PO implements I_AD_User_OrgAccess, I_Pe
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -132,7 +132,7 @@ public class X_AD_User_Roles extends PO implements I_AD_User_Roles, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -98,7 +98,7 @@ public class X_AD_User_Substitute extends PO implements I_AD_User_Substitute, I_
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -165,7 +165,7 @@ public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persiste
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -128,7 +128,7 @@ public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Pers
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -163,7 +163,7 @@ public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -123,7 +123,7 @@ public class X_AD_WF_Responsible extends PO implements I_AD_WF_Responsible, I_Pe
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -107,7 +107,7 @@ public class X_A_Asset extends PO implements I_A_Asset, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -97,7 +97,7 @@ public class X_A_Asset_Delivery extends PO implements I_A_Asset_Delivery, I_Pers
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_ValueNoCheck (COLUMNNAME_AD_User_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -100,7 +100,7 @@ public class X_A_Registration extends PO implements I_A_Registration, I_Persiste
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -99,7 +99,7 @@ public class X_B_Bid extends PO implements I_B_Bid, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -96,7 +96,7 @@ public class X_B_BidComment extends PO implements I_B_BidComment, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -97,7 +97,7 @@ public class X_B_Buyer extends PO implements I_B_Buyer, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -99,7 +99,7 @@ public class X_B_BuyerFunds extends PO implements I_B_BuyerFunds, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -99,7 +99,7 @@ public class X_B_Offer extends PO implements I_B_Offer, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -98,7 +98,7 @@ public class X_B_Seller extends PO implements I_B_Seller, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -99,7 +99,7 @@ public class X_B_SellerFunds extends PO implements I_B_SellerFunds, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -258,7 +258,7 @@ public class X_CM_CStageTTable extends PO implements I_CM_CStageTTable, I_Persis
*/
public void setRecord_ID (int Record_ID)
{
if (Record_ID < 0)
if (Record_ID < 1)
set_ValueNoCheck (COLUMNNAME_Record_ID, null);
else
set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));

View File

@ -99,7 +99,7 @@ public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -95,7 +95,7 @@ public class X_CM_ChatTypeUpdate extends PO implements I_CM_ChatTypeUpdate, I_Pe
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -95,7 +95,7 @@ public class X_CM_ChatUpdate extends PO implements I_CM_ChatUpdate, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -258,7 +258,7 @@ public class X_CM_ContainerTTable extends PO implements I_CM_ContainerTTable, I_
*/
public void setRecord_ID (int Record_ID)
{
if (Record_ID < 0)
if (Record_ID < 1)
set_ValueNoCheck (COLUMNNAME_Record_ID, null);
else
set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));

View File

@ -99,7 +99,7 @@ public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persis
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -97,7 +97,7 @@ public class X_C_BP_BankAccount extends PO implements I_C_BP_BankAccount, I_Pers
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -104,7 +104,7 @@ public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Pe
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -161,7 +161,7 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -148,7 +148,7 @@ public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -98,7 +98,7 @@ public class X_C_JobAssignment extends PO implements I_C_JobAssignment, I_Persis
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -198,7 +198,7 @@ public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAlloca
*/
public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
{
if (M_AttributeSetInstance_ID < 0)
if (M_AttributeSetInstance_ID < 1)
set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null);
else
set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID));

View File

@ -178,7 +178,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -96,7 +96,7 @@ public class X_C_OrgAssignment extends PO implements I_C_OrgAssignment, I_Persis
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -164,7 +164,7 @@ public class X_C_POS extends PO implements I_C_POS, I_Persistent
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
if (C_DocType_ID < 1)
set_Value (COLUMNNAME_C_DocType_ID, null);
else
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));

View File

@ -116,7 +116,7 @@ public class X_C_Project extends PO implements I_C_Project, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -114,7 +114,7 @@ public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -108,7 +108,7 @@ public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_ValueNoCheck (COLUMNNAME_AD_User_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -98,7 +98,7 @@ public class X_C_RfQ_TopicSubscriber extends PO implements I_C_RfQ_TopicSubscrib
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -104,7 +104,7 @@ public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -644,7 +644,7 @@ public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persis
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
if (C_DocType_ID < 1)
set_Value (COLUMNNAME_C_DocType_ID, null);
else
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));

View File

@ -97,7 +97,7 @@ public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -602,7 +602,7 @@ public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
if (C_DocType_ID < 1)
set_Value (COLUMNNAME_C_DocType_ID, null);
else
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));

View File

@ -122,7 +122,7 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
@ -523,7 +523,7 @@ public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
if (C_DocType_ID < 1)
set_Value (COLUMNNAME_C_DocType_ID, null);
else
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));

View File

@ -122,7 +122,7 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
@ -489,7 +489,7 @@ public class X_I_Order extends PO implements I_I_Order, I_Persistent
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
if (C_DocType_ID < 1)
set_Value (COLUMNNAME_C_DocType_ID, null);
else
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));

View File

@ -529,7 +529,7 @@ public class X_I_Payment extends PO implements I_I_Payment, I_Persistent
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
if (C_DocType_ID < 1)
set_Value (COLUMNNAME_C_DocType_ID, null);
else
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));

View File

@ -176,7 +176,7 @@ public class X_K_Index extends PO implements I_K_Index, I_Persistent
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
if (C_DocType_ID < 1)
set_ValueNoCheck (COLUMNNAME_C_DocType_ID, null);
else
set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));

View File

@ -136,7 +136,7 @@ public class X_K_IndexStop extends PO implements I_K_IndexStop, I_Persistent
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
if (C_DocType_ID < 1)
set_Value (COLUMNNAME_C_DocType_ID, null);
else
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));

View File

@ -265,7 +265,7 @@ public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent
*/
public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
{
if (M_AttributeSetInstance_ID < 0)
if (M_AttributeSetInstance_ID < 1)
set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null);
else
set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID));

View File

@ -153,7 +153,7 @@ public class X_M_InOut extends PO implements I_M_InOut, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -220,7 +220,7 @@ public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent
*/
public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
{
if (M_AttributeSetInstance_ID < 0)
if (M_AttributeSetInstance_ID < 1)
set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null);
else
set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID));

View File

@ -283,7 +283,7 @@ public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent
*/
public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
{
if (M_AttributeSetInstance_ID < 0)
if (M_AttributeSetInstance_ID < 1)
set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null);
else
set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID));

View File

@ -831,7 +831,7 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
*/
public void setM_AttributeSet_ID (int M_AttributeSet_ID)
{
if (M_AttributeSet_ID < 0)
if (M_AttributeSet_ID < 1)
set_Value (COLUMNNAME_M_AttributeSet_ID, null);
else
set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID));

View File

@ -115,7 +115,7 @@ public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -238,7 +238,7 @@ public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Pe
*/
public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
{
if (M_AttributeSetInstance_ID < 0)
if (M_AttributeSetInstance_ID < 1)
set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null);
else
set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID));

View File

@ -107,7 +107,7 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent
*/
public void setAD_Role_ID (int AD_Role_ID)
{
if (AD_Role_ID < 0)
if (AD_Role_ID < 1)
set_Value (COLUMNNAME_AD_Role_ID, null);
else
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
@ -146,7 +146,7 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -301,7 +301,7 @@ public class X_PA_SLA_Measure extends PO implements I_PA_SLA_Measure, I_Persiste
*/
public void setRecord_ID (int Record_ID)
{
if (Record_ID < 0)
if (Record_ID < 1)
set_Value (COLUMNNAME_Record_ID, null);
else
set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));

View File

@ -188,7 +188,7 @@ public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_ValueNoCheck (COLUMNNAME_AD_User_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -95,7 +95,7 @@ public class X_R_CategoryUpdates extends PO implements I_R_CategoryUpdates, I_Pe
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -97,7 +97,7 @@ public class X_R_ContactInterest extends PO implements I_R_ContactInterest, I_Pe
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -95,7 +95,7 @@ public class X_R_GroupUpdates extends PO implements I_R_GroupUpdates, I_Persiste
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -95,7 +95,7 @@ public class X_R_IssueUser extends PO implements I_R_IssueUser, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -116,7 +116,7 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent
*/
public void setAD_Role_ID (int AD_Role_ID)
{
if (AD_Role_ID < 0)
if (AD_Role_ID < 1)
set_Value (COLUMNNAME_AD_Role_ID, null);
else
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
@ -194,7 +194,7 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
@ -1612,7 +1612,7 @@ public class X_R_Request extends PO implements I_R_Request, I_Persistent
*/
public void setRecord_ID (int Record_ID)
{
if (Record_ID < 0)
if (Record_ID < 1)
set_ValueNoCheck (COLUMNNAME_Record_ID, null);
else
set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID));

View File

@ -97,7 +97,7 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis
*/
public void setAD_Role_ID (int AD_Role_ID)
{
if (AD_Role_ID < 0)
if (AD_Role_ID < 1)
set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
@ -136,7 +136,7 @@ public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persis
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_ValueNoCheck (COLUMNNAME_AD_User_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -97,7 +97,7 @@ public class X_R_RequestProcessor_Route extends PO implements I_R_RequestProcess
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -95,7 +95,7 @@ public class X_R_RequestTypeUpdates extends PO implements I_R_RequestTypeUpdates
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -95,7 +95,7 @@ public class X_R_RequestUpdates extends PO implements I_R_RequestUpdates, I_Pers
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -102,7 +102,7 @@ public class X_S_Resource extends PO implements I_S_Resource, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -177,7 +177,7 @@ public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
if (C_DocType_ID < 1)
set_Value (COLUMNNAME_C_DocType_ID, null);
else
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));

View File

@ -103,7 +103,7 @@ public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persis
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -96,7 +96,7 @@ public class X_W_Basket extends PO implements I_W_Basket, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
throw new IllegalArgumentException ("AD_User_ID is mandatory.");
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}

View File

@ -79,7 +79,7 @@ public class X_W_Click extends PO implements I_W_Click, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));

View File

@ -82,7 +82,7 @@ public class X_W_Counter extends PO implements I_W_Counter, I_Persistent
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 0)
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));