diff --git a/base/src/org/adempiere/util/GenerateModel.java b/base/src/org/adempiere/util/GenerateModel.java index 0d43f4adb7..282a84859b 100644 --- a/base/src/org/adempiere/util/GenerateModel.java +++ b/base/src/org/adempiere/util/GenerateModel.java @@ -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("----------------------------------"); diff --git a/base/src/org/adempiere/util/ModelClassGenerator.java b/base/src/org/adempiere/util/ModelClassGenerator.java index 372e7e5722..120495afa1 100644 --- a/base/src/org/adempiere/util/ModelClassGenerator.java +++ b/base/src/org/adempiere/util/ModelClassGenerator.java @@ -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; *
  • better formating of generated source *
  • [ 1787876 ] ModelClassGenerator: list constants should be ordered *
  • FR [ 1803309 ] Model generator: generate get method for Search cols - *
  • BF [ 1882470 ] Generate Class Model: setter for lookup fields issue * @author Victor Perez, e-Evolution *
  • 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) diff --git a/base/src/org/compiere/model/X_AD_AccessLog.java b/base/src/org/compiere/model/X_AD_AccessLog.java index 1b0283ba2c..77951dac98 100644 --- a/base/src/org/compiere/model/X_AD_AccessLog.java +++ b/base/src/org/compiere/model/X_AD_AccessLog.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_AlertRecipient.java b/base/src/org/compiere/model/X_AD_AlertRecipient.java index 253a4ddd3d..c85b344c49 100644 --- a/base/src/org/compiere/model/X_AD_AlertRecipient.java +++ b/base/src/org/compiere/model/X_AD_AlertRecipient.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_Archive.java b/base/src/org/compiere/model/X_AD_Archive.java index 646e7631cd..a65ef448d3 100644 --- a/base/src/org/compiere/model/X_AD_Archive.java +++ b/base/src/org/compiere/model/X_AD_Archive.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_AttachmentNote.java b/base/src/org/compiere/model/X_AD_AttachmentNote.java index 24cbbb11f4..a1352a11f6 100644 --- a/base/src/org/compiere/model/X_AD_AttachmentNote.java +++ b/base/src/org/compiere/model/X_AD_AttachmentNote.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_AD_Issue.java b/base/src/org/compiere/model/X_AD_Issue.java index aa82aa163c..ff81aab3be 100644 --- a/base/src/org/compiere/model/X_AD_Issue.java +++ b/base/src/org/compiere/model/X_AD_Issue.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_LdapAccess.java b/base/src/org/compiere/model/X_AD_LdapAccess.java index b4be8102d9..9edc002c70 100755 --- a/base/src/org/compiere/model/X_AD_LdapAccess.java +++ b/base/src/org/compiere/model/X_AD_LdapAccess.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_Note.java b/base/src/org/compiere/model/X_AD_Note.java index 5d9b4b4291..cdc80eda2a 100644 --- a/base/src/org/compiere/model/X_AD_Note.java +++ b/base/src/org/compiere/model/X_AD_Note.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_PInstance.java b/base/src/org/compiere/model/X_AD_PInstance.java index dc9b8800d6..fffef35293 100644 --- a/base/src/org/compiere/model/X_AD_PInstance.java +++ b/base/src/org/compiere/model/X_AD_PInstance.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_Package_Exp_Common.java b/base/src/org/compiere/model/X_AD_Package_Exp_Common.java index c6076a5b86..5c8383d9d1 100644 --- a/base/src/org/compiere/model/X_AD_Package_Exp_Common.java +++ b/base/src/org/compiere/model/X_AD_Package_Exp_Common.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_Package_Exp_Detail.java b/base/src/org/compiere/model/X_AD_Package_Exp_Detail.java index 0db3cb49d2..a927513d56 100644 --- a/base/src/org/compiere/model/X_AD_Package_Exp_Detail.java +++ b/base/src/org/compiere/model/X_AD_Package_Exp_Detail.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_Preference.java b/base/src/org/compiere/model/X_AD_Preference.java index ec36ed1fd4..b116825f44 100644 --- a/base/src/org/compiere/model/X_AD_Preference.java +++ b/base/src/org/compiere/model/X_AD_Preference.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_Private_Access.java b/base/src/org/compiere/model/X_AD_Private_Access.java index 3b01b84399..b6c8638662 100644 --- a/base/src/org/compiere/model/X_AD_Private_Access.java +++ b/base/src/org/compiere/model/X_AD_Private_Access.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_AD_Registration.java b/base/src/org/compiere/model/X_AD_Registration.java index 1dbd40a56b..bc936899d9 100644 --- a/base/src/org/compiere/model/X_AD_Registration.java +++ b/base/src/org/compiere/model/X_AD_Registration.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_SchedulerRecipient.java b/base/src/org/compiere/model/X_AD_SchedulerRecipient.java index 69b9fd68ea..fe5fd0e2c6 100644 --- a/base/src/org/compiere/model/X_AD_SchedulerRecipient.java +++ b/base/src/org/compiere/model/X_AD_SchedulerRecipient.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_Session.java b/base/src/org/compiere/model/X_AD_Session.java index 63f65c40da..3833a8c4f7 100644 --- a/base/src/org/compiere/model/X_AD_Session.java +++ b/base/src/org/compiere/model/X_AD_Session.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_System.java b/base/src/org/compiere/model/X_AD_System.java index 37341529a4..6298705f87 100644 --- a/base/src/org/compiere/model/X_AD_System.java +++ b/base/src/org/compiere/model/X_AD_System.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_TreeBar.java b/base/src/org/compiere/model/X_AD_TreeBar.java index f53c12343a..a4fae01b06 100644 --- a/base/src/org/compiere/model/X_AD_TreeBar.java +++ b/base/src/org/compiere/model/X_AD_TreeBar.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_AD_User.java b/base/src/org/compiere/model/X_AD_User.java index 975d2a9d14..a9c262e37d 100644 --- a/base/src/org/compiere/model/X_AD_User.java +++ b/base/src/org/compiere/model/X_AD_User.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_AD_UserBPAccess.java b/base/src/org/compiere/model/X_AD_UserBPAccess.java index f062dd7cbc..552a07cbb1 100644 --- a/base/src/org/compiere/model/X_AD_UserBPAccess.java +++ b/base/src/org/compiere/model/X_AD_UserBPAccess.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_AD_UserDef_Win.java b/base/src/org/compiere/model/X_AD_UserDef_Win.java index 50fc25c203..88346200c4 100644 --- a/base/src/org/compiere/model/X_AD_UserDef_Win.java +++ b/base/src/org/compiere/model/X_AD_UserDef_Win.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_UserMail.java b/base/src/org/compiere/model/X_AD_UserMail.java index ba9e23d2da..bec3ab7cbc 100644 --- a/base/src/org/compiere/model/X_AD_UserMail.java +++ b/base/src/org/compiere/model/X_AD_UserMail.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_AD_UserQuery.java b/base/src/org/compiere/model/X_AD_UserQuery.java index a59c2ac556..55aca86b2f 100644 --- a/base/src/org/compiere/model/X_AD_UserQuery.java +++ b/base/src/org/compiere/model/X_AD_UserQuery.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_User_OrgAccess.java b/base/src/org/compiere/model/X_AD_User_OrgAccess.java index 834b5407df..1c96e61a34 100644 --- a/base/src/org/compiere/model/X_AD_User_OrgAccess.java +++ b/base/src/org/compiere/model/X_AD_User_OrgAccess.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_AD_User_Roles.java b/base/src/org/compiere/model/X_AD_User_Roles.java index c0b824cda8..baec49aec4 100644 --- a/base/src/org/compiere/model/X_AD_User_Roles.java +++ b/base/src/org/compiere/model/X_AD_User_Roles.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_AD_User_Substitute.java b/base/src/org/compiere/model/X_AD_User_Substitute.java index be62bb0cf7..bdfdd80ad5 100644 --- a/base/src/org/compiere/model/X_AD_User_Substitute.java +++ b/base/src/org/compiere/model/X_AD_User_Substitute.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_AD_WF_Activity.java b/base/src/org/compiere/model/X_AD_WF_Activity.java index 3e130e126a..81e2700af2 100644 --- a/base/src/org/compiere/model/X_AD_WF_Activity.java +++ b/base/src/org/compiere/model/X_AD_WF_Activity.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_WF_EventAudit.java b/base/src/org/compiere/model/X_AD_WF_EventAudit.java index 4690f98b93..50f27d269e 100644 --- a/base/src/org/compiere/model/X_AD_WF_EventAudit.java +++ b/base/src/org/compiere/model/X_AD_WF_EventAudit.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_WF_Process.java b/base/src/org/compiere/model/X_AD_WF_Process.java index 761916fe21..7f4aabd312 100644 --- a/base/src/org/compiere/model/X_AD_WF_Process.java +++ b/base/src/org/compiere/model/X_AD_WF_Process.java @@ -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)); diff --git a/base/src/org/compiere/model/X_AD_WF_Responsible.java b/base/src/org/compiere/model/X_AD_WF_Responsible.java index 581097c180..38701c9a32 100644 --- a/base/src/org/compiere/model/X_AD_WF_Responsible.java +++ b/base/src/org/compiere/model/X_AD_WF_Responsible.java @@ -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)); diff --git a/base/src/org/compiere/model/X_A_Asset.java b/base/src/org/compiere/model/X_A_Asset.java index fdc0c42a32..5a8a4bcfae 100644 --- a/base/src/org/compiere/model/X_A_Asset.java +++ b/base/src/org/compiere/model/X_A_Asset.java @@ -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)); diff --git a/base/src/org/compiere/model/X_A_Asset_Delivery.java b/base/src/org/compiere/model/X_A_Asset_Delivery.java index ae1dc012f5..2489e27a7c 100644 --- a/base/src/org/compiere/model/X_A_Asset_Delivery.java +++ b/base/src/org/compiere/model/X_A_Asset_Delivery.java @@ -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)); diff --git a/base/src/org/compiere/model/X_A_Registration.java b/base/src/org/compiere/model/X_A_Registration.java index d4bc8de11a..ab9a064920 100644 --- a/base/src/org/compiere/model/X_A_Registration.java +++ b/base/src/org/compiere/model/X_A_Registration.java @@ -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)); diff --git a/base/src/org/compiere/model/X_B_Bid.java b/base/src/org/compiere/model/X_B_Bid.java index 9faa5ecd53..62d96bc4f7 100644 --- a/base/src/org/compiere/model/X_B_Bid.java +++ b/base/src/org/compiere/model/X_B_Bid.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_B_BidComment.java b/base/src/org/compiere/model/X_B_BidComment.java index 1042b42aca..d281a14bfc 100644 --- a/base/src/org/compiere/model/X_B_BidComment.java +++ b/base/src/org/compiere/model/X_B_BidComment.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_B_Buyer.java b/base/src/org/compiere/model/X_B_Buyer.java index f6690e1b13..5b03cd54db 100644 --- a/base/src/org/compiere/model/X_B_Buyer.java +++ b/base/src/org/compiere/model/X_B_Buyer.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_B_BuyerFunds.java b/base/src/org/compiere/model/X_B_BuyerFunds.java index 2fd9430a69..4e602b0277 100644 --- a/base/src/org/compiere/model/X_B_BuyerFunds.java +++ b/base/src/org/compiere/model/X_B_BuyerFunds.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_B_Offer.java b/base/src/org/compiere/model/X_B_Offer.java index 654b51e91f..0cfcd67665 100644 --- a/base/src/org/compiere/model/X_B_Offer.java +++ b/base/src/org/compiere/model/X_B_Offer.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_B_Seller.java b/base/src/org/compiere/model/X_B_Seller.java index d91b0e4ad2..9712b527d2 100644 --- a/base/src/org/compiere/model/X_B_Seller.java +++ b/base/src/org/compiere/model/X_B_Seller.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_B_SellerFunds.java b/base/src/org/compiere/model/X_B_SellerFunds.java index 17a9953fbf..58b86249a9 100644 --- a/base/src/org/compiere/model/X_B_SellerFunds.java +++ b/base/src/org/compiere/model/X_B_SellerFunds.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_CM_CStageTTable.java b/base/src/org/compiere/model/X_CM_CStageTTable.java index 6cba8040f9..0d00dd9d46 100644 --- a/base/src/org/compiere/model/X_CM_CStageTTable.java +++ b/base/src/org/compiere/model/X_CM_CStageTTable.java @@ -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)); diff --git a/base/src/org/compiere/model/X_CM_ChatEntry.java b/base/src/org/compiere/model/X_CM_ChatEntry.java index 9bc81f61c2..75038afe4b 100644 --- a/base/src/org/compiere/model/X_CM_ChatEntry.java +++ b/base/src/org/compiere/model/X_CM_ChatEntry.java @@ -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)); diff --git a/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java b/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java index 6b0426968d..52fd17b103 100644 --- a/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java +++ b/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_CM_ChatUpdate.java b/base/src/org/compiere/model/X_CM_ChatUpdate.java index a99ef99614..6bdadf921d 100644 --- a/base/src/org/compiere/model/X_CM_ChatUpdate.java +++ b/base/src/org/compiere/model/X_CM_ChatUpdate.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_CM_ContainerTTable.java b/base/src/org/compiere/model/X_CM_ContainerTTable.java index 97dc796945..3e6773eacf 100644 --- a/base/src/org/compiere/model/X_CM_ContainerTTable.java +++ b/base/src/org/compiere/model/X_CM_ContainerTTable.java @@ -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)); diff --git a/base/src/org/compiere/model/X_CM_WebAccessLog.java b/base/src/org/compiere/model/X_CM_WebAccessLog.java index daf1f1d621..1e723845a7 100644 --- a/base/src/org/compiere/model/X_CM_WebAccessLog.java +++ b/base/src/org/compiere/model/X_CM_WebAccessLog.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_BP_BankAccount.java b/base/src/org/compiere/model/X_C_BP_BankAccount.java index 4b3c486fb7..d5651ee156 100644 --- a/base/src/org/compiere/model/X_C_BP_BankAccount.java +++ b/base/src/org/compiere/model/X_C_BP_BankAccount.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_DunningRunEntry.java b/base/src/org/compiere/model/X_C_DunningRunEntry.java index ef5f4db5c8..4f742612ee 100644 --- a/base/src/org/compiere/model/X_C_DunningRunEntry.java +++ b/base/src/org/compiere/model/X_C_DunningRunEntry.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_Invoice.java b/base/src/org/compiere/model/X_C_Invoice.java index f037bcc5e6..8438576dae 100644 --- a/base/src/org/compiere/model/X_C_Invoice.java +++ b/base/src/org/compiere/model/X_C_Invoice.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_InvoiceBatchLine.java b/base/src/org/compiere/model/X_C_InvoiceBatchLine.java index 9bc1a39fea..a51aa91e6d 100644 --- a/base/src/org/compiere/model/X_C_InvoiceBatchLine.java +++ b/base/src/org/compiere/model/X_C_InvoiceBatchLine.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_JobAssignment.java b/base/src/org/compiere/model/X_C_JobAssignment.java index 9e2a93a1b1..280f97acce 100644 --- a/base/src/org/compiere/model/X_C_JobAssignment.java +++ b/base/src/org/compiere/model/X_C_JobAssignment.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_C_LandedCostAllocation.java b/base/src/org/compiere/model/X_C_LandedCostAllocation.java index 2c550e9fc4..3943205f7e 100644 --- a/base/src/org/compiere/model/X_C_LandedCostAllocation.java +++ b/base/src/org/compiere/model/X_C_LandedCostAllocation.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_Order.java b/base/src/org/compiere/model/X_C_Order.java index 3bd8e3ef05..ea109235e0 100644 --- a/base/src/org/compiere/model/X_C_Order.java +++ b/base/src/org/compiere/model/X_C_Order.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_OrgAssignment.java b/base/src/org/compiere/model/X_C_OrgAssignment.java index 24ebd2cc18..d4d2abad23 100644 --- a/base/src/org/compiere/model/X_C_OrgAssignment.java +++ b/base/src/org/compiere/model/X_C_OrgAssignment.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_C_POS.java b/base/src/org/compiere/model/X_C_POS.java index d1802e3cdf..a9ebbf8c30 100644 --- a/base/src/org/compiere/model/X_C_POS.java +++ b/base/src/org/compiere/model/X_C_POS.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_Project.java b/base/src/org/compiere/model/X_C_Project.java index b2d9e9e0d0..3927bbb918 100644 --- a/base/src/org/compiere/model/X_C_Project.java +++ b/base/src/org/compiere/model/X_C_Project.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_RfQ.java b/base/src/org/compiere/model/X_C_RfQ.java index 07501b7970..4897772339 100644 --- a/base/src/org/compiere/model/X_C_RfQ.java +++ b/base/src/org/compiere/model/X_C_RfQ.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_RfQResponse.java b/base/src/org/compiere/model/X_C_RfQResponse.java index 29c533700e..c92315c009 100644 --- a/base/src/org/compiere/model/X_C_RfQResponse.java +++ b/base/src/org/compiere/model/X_C_RfQResponse.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java b/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java index f99b85e9b5..0c558780bc 100644 --- a/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java +++ b/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java @@ -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)); diff --git a/base/src/org/compiere/model/X_C_UserRemuneration.java b/base/src/org/compiere/model/X_C_UserRemuneration.java index 6179013d67..23f636fcea 100644 --- a/base/src/org/compiere/model/X_C_UserRemuneration.java +++ b/base/src/org/compiere/model/X_C_UserRemuneration.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_GL_Distribution.java b/base/src/org/compiere/model/X_GL_Distribution.java index 2b7a2b613b..b8ca3716fe 100644 --- a/base/src/org/compiere/model/X_GL_Distribution.java +++ b/base/src/org/compiere/model/X_GL_Distribution.java @@ -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)); diff --git a/base/src/org/compiere/model/X_I_BPartner.java b/base/src/org/compiere/model/X_I_BPartner.java index b4ae973f87..7580f39304 100644 --- a/base/src/org/compiere/model/X_I_BPartner.java +++ b/base/src/org/compiere/model/X_I_BPartner.java @@ -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)); diff --git a/base/src/org/compiere/model/X_I_GLJournal.java b/base/src/org/compiere/model/X_I_GLJournal.java index 378dde474c..27386813e5 100644 --- a/base/src/org/compiere/model/X_I_GLJournal.java +++ b/base/src/org/compiere/model/X_I_GLJournal.java @@ -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)); diff --git a/base/src/org/compiere/model/X_I_Invoice.java b/base/src/org/compiere/model/X_I_Invoice.java index 1296abf5c5..3914ff0c12 100644 --- a/base/src/org/compiere/model/X_I_Invoice.java +++ b/base/src/org/compiere/model/X_I_Invoice.java @@ -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)); diff --git a/base/src/org/compiere/model/X_I_Order.java b/base/src/org/compiere/model/X_I_Order.java index db2a34d7b7..9fdd42cae6 100644 --- a/base/src/org/compiere/model/X_I_Order.java +++ b/base/src/org/compiere/model/X_I_Order.java @@ -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)); diff --git a/base/src/org/compiere/model/X_I_Payment.java b/base/src/org/compiere/model/X_I_Payment.java index fe68f4b465..cd78a287bd 100644 --- a/base/src/org/compiere/model/X_I_Payment.java +++ b/base/src/org/compiere/model/X_I_Payment.java @@ -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)); diff --git a/base/src/org/compiere/model/X_K_Index.java b/base/src/org/compiere/model/X_K_Index.java index 954cd69a6e..b44b664aac 100644 --- a/base/src/org/compiere/model/X_K_Index.java +++ b/base/src/org/compiere/model/X_K_Index.java @@ -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)); diff --git a/base/src/org/compiere/model/X_K_IndexStop.java b/base/src/org/compiere/model/X_K_IndexStop.java index a8042a0f02..3fea85851b 100644 --- a/base/src/org/compiere/model/X_K_IndexStop.java +++ b/base/src/org/compiere/model/X_K_IndexStop.java @@ -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)); diff --git a/base/src/org/compiere/model/X_M_BOMProduct.java b/base/src/org/compiere/model/X_M_BOMProduct.java index 497289ca3f..6eacd5e956 100644 --- a/base/src/org/compiere/model/X_M_BOMProduct.java +++ b/base/src/org/compiere/model/X_M_BOMProduct.java @@ -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)); diff --git a/base/src/org/compiere/model/X_M_InOut.java b/base/src/org/compiere/model/X_M_InOut.java index 9e791be3a3..b466951aa7 100644 --- a/base/src/org/compiere/model/X_M_InOut.java +++ b/base/src/org/compiere/model/X_M_InOut.java @@ -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)); diff --git a/base/src/org/compiere/model/X_M_MatchInv.java b/base/src/org/compiere/model/X_M_MatchInv.java index 3edfd65075..89cb1ebb28 100644 --- a/base/src/org/compiere/model/X_M_MatchInv.java +++ b/base/src/org/compiere/model/X_M_MatchInv.java @@ -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)); diff --git a/base/src/org/compiere/model/X_M_MatchPO.java b/base/src/org/compiere/model/X_M_MatchPO.java index c1fe59e423..0aedc4431e 100644 --- a/base/src/org/compiere/model/X_M_MatchPO.java +++ b/base/src/org/compiere/model/X_M_MatchPO.java @@ -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)); diff --git a/base/src/org/compiere/model/X_M_Product.java b/base/src/org/compiere/model/X_M_Product.java index d77ebd32e1..7d5afab573 100644 --- a/base/src/org/compiere/model/X_M_Product.java +++ b/base/src/org/compiere/model/X_M_Product.java @@ -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)); diff --git a/base/src/org/compiere/model/X_M_Requisition.java b/base/src/org/compiere/model/X_M_Requisition.java index ac9371f0ae..68c425c70b 100644 --- a/base/src/org/compiere/model/X_M_Requisition.java +++ b/base/src/org/compiere/model/X_M_Requisition.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_M_RequisitionLine.java b/base/src/org/compiere/model/X_M_RequisitionLine.java index cb2c78f519..20e2fc3a0e 100644 --- a/base/src/org/compiere/model/X_M_RequisitionLine.java +++ b/base/src/org/compiere/model/X_M_RequisitionLine.java @@ -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)); diff --git a/base/src/org/compiere/model/X_PA_Goal.java b/base/src/org/compiere/model/X_PA_Goal.java index 39e806019f..75c892a72a 100644 --- a/base/src/org/compiere/model/X_PA_Goal.java +++ b/base/src/org/compiere/model/X_PA_Goal.java @@ -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)); diff --git a/base/src/org/compiere/model/X_PA_SLA_Measure.java b/base/src/org/compiere/model/X_PA_SLA_Measure.java index ed91141fea..0c20d9850b 100644 --- a/base/src/org/compiere/model/X_PA_SLA_Measure.java +++ b/base/src/org/compiere/model/X_PA_SLA_Measure.java @@ -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)); diff --git a/base/src/org/compiere/model/X_RV_BPartner.java b/base/src/org/compiere/model/X_RV_BPartner.java index 65699390ce..7dd747d347 100644 --- a/base/src/org/compiere/model/X_RV_BPartner.java +++ b/base/src/org/compiere/model/X_RV_BPartner.java @@ -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)); diff --git a/base/src/org/compiere/model/X_R_CategoryUpdates.java b/base/src/org/compiere/model/X_R_CategoryUpdates.java index 29d174cb68..c72bae4990 100644 --- a/base/src/org/compiere/model/X_R_CategoryUpdates.java +++ b/base/src/org/compiere/model/X_R_CategoryUpdates.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_R_ContactInterest.java b/base/src/org/compiere/model/X_R_ContactInterest.java index 6026096a75..99d98d6463 100644 --- a/base/src/org/compiere/model/X_R_ContactInterest.java +++ b/base/src/org/compiere/model/X_R_ContactInterest.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_R_GroupUpdates.java b/base/src/org/compiere/model/X_R_GroupUpdates.java index f3e8cbb825..a99b891205 100644 --- a/base/src/org/compiere/model/X_R_GroupUpdates.java +++ b/base/src/org/compiere/model/X_R_GroupUpdates.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_R_IssueUser.java b/base/src/org/compiere/model/X_R_IssueUser.java index 027157cb50..83795ae40d 100644 --- a/base/src/org/compiere/model/X_R_IssueUser.java +++ b/base/src/org/compiere/model/X_R_IssueUser.java @@ -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)); diff --git a/base/src/org/compiere/model/X_R_Request.java b/base/src/org/compiere/model/X_R_Request.java index 2ff860d677..562814c7e8 100644 --- a/base/src/org/compiere/model/X_R_Request.java +++ b/base/src/org/compiere/model/X_R_Request.java @@ -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)); diff --git a/base/src/org/compiere/model/X_R_RequestAction.java b/base/src/org/compiere/model/X_R_RequestAction.java index 9e8f00ed44..1f2f0aa7d1 100644 --- a/base/src/org/compiere/model/X_R_RequestAction.java +++ b/base/src/org/compiere/model/X_R_RequestAction.java @@ -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)); diff --git a/base/src/org/compiere/model/X_R_RequestProcessor_Route.java b/base/src/org/compiere/model/X_R_RequestProcessor_Route.java index a47b47d040..7b5f0c9a2c 100644 --- a/base/src/org/compiere/model/X_R_RequestProcessor_Route.java +++ b/base/src/org/compiere/model/X_R_RequestProcessor_Route.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_R_RequestTypeUpdates.java b/base/src/org/compiere/model/X_R_RequestTypeUpdates.java index 1e47216974..98488a98b4 100644 --- a/base/src/org/compiere/model/X_R_RequestTypeUpdates.java +++ b/base/src/org/compiere/model/X_R_RequestTypeUpdates.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_R_RequestUpdates.java b/base/src/org/compiere/model/X_R_RequestUpdates.java index 64d4d16dde..4ed610ec68 100644 --- a/base/src/org/compiere/model/X_R_RequestUpdates.java +++ b/base/src/org/compiere/model/X_R_RequestUpdates.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_S_Resource.java b/base/src/org/compiere/model/X_S_Resource.java index f403d4f719..dfa8075970 100644 --- a/base/src/org/compiere/model/X_S_Resource.java +++ b/base/src/org/compiere/model/X_S_Resource.java @@ -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)); diff --git a/base/src/org/compiere/model/X_T_Replenish.java b/base/src/org/compiere/model/X_T_Replenish.java index 4791645fd4..f881315648 100644 --- a/base/src/org/compiere/model/X_T_Replenish.java +++ b/base/src/org/compiere/model/X_T_Replenish.java @@ -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)); diff --git a/base/src/org/compiere/model/X_W_Advertisement.java b/base/src/org/compiere/model/X_W_Advertisement.java index 1c1afe631e..c8162e26fe 100644 --- a/base/src/org/compiere/model/X_W_Advertisement.java +++ b/base/src/org/compiere/model/X_W_Advertisement.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_W_Basket.java b/base/src/org/compiere/model/X_W_Basket.java index 036a5d7b8e..62e54e81ca 100644 --- a/base/src/org/compiere/model/X_W_Basket.java +++ b/base/src/org/compiere/model/X_W_Basket.java @@ -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)); } diff --git a/base/src/org/compiere/model/X_W_Click.java b/base/src/org/compiere/model/X_W_Click.java index a3ad15052f..60bff06a61 100644 --- a/base/src/org/compiere/model/X_W_Click.java +++ b/base/src/org/compiere/model/X_W_Click.java @@ -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)); diff --git a/base/src/org/compiere/model/X_W_Counter.java b/base/src/org/compiere/model/X_W_Counter.java index e7f067103b..8d2f4289a4 100644 --- a/base/src/org/compiere/model/X_W_Counter.java +++ b/base/src/org/compiere/model/X_W_Counter.java @@ -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));