diff --git a/migration/360lts-release/oracle/872_IDEMPIERE-364_Customizable_Grid_oracle.sql b/migration/360lts-release/oracle/872_IDEMPIERE-364_Customizable_Grid.sql
similarity index 99%
rename from migration/360lts-release/oracle/872_IDEMPIERE-364_Customizable_Grid_oracle.sql
rename to migration/360lts-release/oracle/872_IDEMPIERE-364_Customizable_Grid.sql
index f2b9ef993c..bf52ac78ba 100644
--- a/migration/360lts-release/oracle/872_IDEMPIERE-364_Customizable_Grid_oracle.sql
+++ b/migration/360lts-release/oracle/872_IDEMPIERE-364_Customizable_Grid.sql
@@ -372,7 +372,7 @@ Update ad_field set seqNoGrid = seqNo;
UPDATE AD_System
- SET LastMigrationScriptApplied='872_IDEMPIERE-364_Customizable_Grid_oracle.sql'
-WHERE LastMigrationScriptApplied<'872_IDEMPIERE-364_Customizable_Grid_oracle.sql'
+ SET LastMigrationScriptApplied='872_IDEMPIERE-364_Customizable_Grid.sql'
+WHERE LastMigrationScriptApplied<'872_IDEMPIERE-364_Customizable_Grid.sql'
OR LastMigrationScriptApplied IS NULL
-;
\ No newline at end of file
+;
diff --git a/migration/360lts-release/oracle/873_IDEMPIERE-364_AD_Field_oracle.sql b/migration/360lts-release/oracle/873_IDEMPIERE-364_AD_Field.sql
similarity index 94%
rename from migration/360lts-release/oracle/873_IDEMPIERE-364_AD_Field_oracle.sql
rename to migration/360lts-release/oracle/873_IDEMPIERE-364_AD_Field.sql
index bc93590404..2ac27eb954 100644
--- a/migration/360lts-release/oracle/873_IDEMPIERE-364_AD_Field_oracle.sql
+++ b/migration/360lts-release/oracle/873_IDEMPIERE-364_AD_Field.sql
@@ -69,7 +69,7 @@ CREATE OR REPLACE VIEW AD_FIELD_VT AS
UPDATE AD_System
- SET LastMigrationScriptApplied='873_IDEMPIERE-364_AD_Field_oracle.sql'
-WHERE LastMigrationScriptApplied<'873_IDEMPIERE-364_AD_Field_oracle.sql'
+ SET LastMigrationScriptApplied='873_IDEMPIERE-364_AD_Field.sql'
+WHERE LastMigrationScriptApplied<'873_IDEMPIERE-364_AD_Field.sql'
OR LastMigrationScriptApplied IS NULL
-;
\ No newline at end of file
+;
diff --git a/migration/360lts-release/postgresql/872_IDEMPIERE-364_Customizable_Grid_postgresql.sql b/migration/360lts-release/postgresql/872_IDEMPIERE-364_Customizable_Grid.sql
similarity index 99%
rename from migration/360lts-release/postgresql/872_IDEMPIERE-364_Customizable_Grid_postgresql.sql
rename to migration/360lts-release/postgresql/872_IDEMPIERE-364_Customizable_Grid.sql
index 76613ee980..431f7b91ff 100644
--- a/migration/360lts-release/postgresql/872_IDEMPIERE-364_Customizable_Grid_postgresql.sql
+++ b/migration/360lts-release/postgresql/872_IDEMPIERE-364_Customizable_Grid.sql
@@ -371,7 +371,9 @@ Update ad_field set isDisplayedGrid = isDisplayed;
Update ad_field set seqNoGrid = seqNo;
- UPDATE AD_System
- SET LastMigrationScriptApplied='872_IDEMPIERE-364_Customizable_Grid_postgresql.sql'
-WHERE LastMigrationScriptApplied<'872_IDEMPIERE-364_Customizable_Grid_postgresql.sql'
- OR LastMigrationScriptApplied IS NULL;
+UPDATE AD_System
+ SET LastMigrationScriptApplied='872_IDEMPIERE-364_Customizable_Grid.sql'
+WHERE LastMigrationScriptApplied<'872_IDEMPIERE-364_Customizable_Grid.sql'
+ OR LastMigrationScriptApplied IS NULL
+;
+
diff --git a/migration/360lts-release/postgresql/873_IDEMPIERE-364_AD_Field_postgresql.sql b/migration/360lts-release/postgresql/873_IDEMPIERE-364_AD_Field.sql
similarity index 93%
rename from migration/360lts-release/postgresql/873_IDEMPIERE-364_AD_Field_postgresql.sql
rename to migration/360lts-release/postgresql/873_IDEMPIERE-364_AD_Field.sql
index e1a4e26b1e..c97c1f3f8b 100644
--- a/migration/360lts-release/postgresql/873_IDEMPIERE-364_AD_Field_postgresql.sql
+++ b/migration/360lts-release/postgresql/873_IDEMPIERE-364_AD_Field.sql
@@ -26,8 +26,8 @@ CREATE OR REPLACE VIEW ad_field_vt AS
- UPDATE AD_System
- SET LastMigrationScriptApplied='873_IDEMPIERE-364_AD_Field_postgresql.sql'
-WHERE LastMigrationScriptApplied<'873_IDEMPIERE-364_AD_Field_postgresql.sql'
- OR LastMigrationScriptApplied IS NULL;
-;
\ No newline at end of file
+UPDATE AD_System
+ SET LastMigrationScriptApplied='873_IDEMPIERE-364_AD_Field.sql'
+WHERE LastMigrationScriptApplied<'873_IDEMPIERE-364_AD_Field.sql'
+ OR LastMigrationScriptApplied IS NULL
+;
diff --git a/org.adempiere.base-feature/model.generator.launch b/org.adempiere.base-feature/model.generator.launch
index 34ba8c6702..5fba21ad13 100644
--- a/org.adempiere.base-feature/model.generator.launch
+++ b/org.adempiere.base-feature/model.generator.launch
@@ -1,32 +1,32 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/org.adempiere.base/src/org/adempiere/model/I_AD_Tab_Customization.java b/org.adempiere.base/src/org/adempiere/model/I_AD_Tab_Customization.java
deleted file mode 100644
index 46c9fc7d26..0000000000
--- a/org.adempiere.base/src/org/adempiere/model/I_AD_Tab_Customization.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software, you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation, either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY, without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program, if not, write to the Free Software *
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.adempiere.model;
-
-import java.math.BigDecimal;
-import org.compiere.model.*;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for AD_Tab_Customization
- * @author Adempiere (generated)
- * @version Release 3.5.2a
- */
-public interface I_AD_Tab_Customization
-{
-
- /** TableName=AD_Tab_Customization */
- public static final String Table_Name = "AD_Tab_Customization";
-
- /** AD_Table_ID=2000077 */
- public static final int Table_ID = MTable.getTable_ID(Table_Name);
-
- KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
-
- /** AccessLevel = 3 - Client - Org
- */
- BigDecimal accessLevel = BigDecimal.valueOf(3);
-
- /** Load Meta Data */
-
- /** Column name AD_Tab_ID */
- public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID";
-
- /** Set Tab.
- * Tab within a Window
- */
- public void setAD_Tab_ID (int AD_Tab_ID);
-
- /** Get Tab.
- * Tab within a Window
- */
- public int getAD_Tab_ID();
-
- public I_AD_Tab getAD_Tab() throws Exception;
-
- /** Column name AD_Tab_Customization_ID */
- public static final String COLUMNNAME_AD_Tab_Customization_ID = "AD_Tab_Customization_ID";
-
- /** Set AD_Tab_Customization_ID */
- public void setAD_Tab_Customization_ID (int AD_Tab_Customization_ID);
-
- /** Get AD_Tab_Customization_ID */
- public int getAD_Tab_Customization_ID();
-
- /** Column name AD_User_ID */
- public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
-
- /** Set User/Contact.
- * User within the system - Internal or Business Partner Contact
- */
- public void setAD_User_ID (int AD_User_ID);
-
- /** Get User/Contact.
- * User within the system - Internal or Business Partner Contact
- */
- public int getAD_User_ID();
-
- public I_AD_User getAD_User() throws Exception;
-
- /** Column name Custom */
- public static final String COLUMNNAME_Custom = "Custom";
-
- /** Set Custom */
- public void setCustom (String Custom);
-
- /** Get Custom */
- public String getCustom();
-}
diff --git a/org.adempiere.base/src/org/adempiere/model/MTabCustomization.java b/org.adempiere.base/src/org/adempiere/model/MTabCustomization.java
index 12ce3b3145..04261bb219 100644
--- a/org.adempiere.base/src/org/adempiere/model/MTabCustomization.java
+++ b/org.adempiere.base/src/org/adempiere/model/MTabCustomization.java
@@ -4,13 +4,14 @@ import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.model.Query;
+import org.compiere.model.X_AD_Tab_Customization;
public class MTabCustomization extends X_AD_Tab_Customization {
-
/**
*
*/
- private static final long serialVersionUID = 6001121773007479059L;
+ private static final long serialVersionUID = 3977886674683054829L;
+
public MTabCustomization(Properties ctx, int AD_Tab_Customization_ID, String trxName) {
super(ctx, AD_Tab_Customization_ID, trxName);
if (AD_Tab_Customization_ID == 0)
diff --git a/org.adempiere.base/src/org/adempiere/util/ModelGeneratorDialog.java b/org.adempiere.base/src/org/adempiere/util/ModelGeneratorDialog.java
index 2feae96773..fa0daf64da 100644
--- a/org.adempiere.base/src/org/adempiere/util/ModelGeneratorDialog.java
+++ b/org.adempiere.base/src/org/adempiere/util/ModelGeneratorDialog.java
@@ -20,6 +20,7 @@ import java.awt.Insets;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
+import java.io.File;
import javax.swing.JButton;
import javax.swing.JCheckBox;
@@ -29,6 +30,8 @@ import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
+import org.compiere.Adempiere;
+
/**
*
* @author hengsin
@@ -63,7 +66,8 @@ public class ModelGeneratorDialog extends JDialog implements ActionListener {
Panel filePanel = new Panel();
filePanel.setLayout(new BorderLayout());
- fFolderName = new JTextField();
+ String defaultPath = Adempiere.getAdempiereHome() + File.separator + "org.adempiere.base" + File.separator + "src";
+ fFolderName = new JTextField(defaultPath);
filePanel.add(fFolderName, BorderLayout.CENTER);
bFolder = new JButton("...");
bFolder.setMargin(new Insets(0, 0, 0, 0));
@@ -73,22 +77,22 @@ public class ModelGeneratorDialog extends JDialog implements ActionListener {
bFolder.addActionListener(this);
mainPanel.add(new JLabel("Package Name"));
- fPackageName = new JTextField("org.adempiere.model");
+ fPackageName = new JTextField("org.compiere.model");
mainPanel.add(fPackageName);
mainPanel.add(new JLabel("Table Name"));
- fTableName = new JTextField("%");
+ fTableName = new JTextField("AD_ReplaceThis%");
mainPanel.add(fTableName);
mainPanel.add(new JLabel("Entity Type"));
- fEntityType = new JTextField("U,A");
+ fEntityType = new JTextField("D");
mainPanel.add(fEntityType);
fGenerateInterface = new JCheckBox("Generate Interface");
fGenerateInterface.setSelected(true);
mainPanel.add(fGenerateInterface);
fGenerateClass = new JCheckBox("Generate Class");
- fGenerateClass.setSelected(false);
+ fGenerateClass.setSelected(true);
mainPanel.add(fGenerateClass);
bGenerate = new JButton("Generate Source");
diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_Tab_Customization.java b/org.adempiere.base/src/org/compiere/model/I_AD_Tab_Customization.java
new file mode 100644
index 0000000000..ae7d9c0d90
--- /dev/null
+++ b/org.adempiere.base/src/org/compiere/model/I_AD_Tab_Customization.java
@@ -0,0 +1,157 @@
+/******************************************************************************
+ * Product: Adempiere ERP & CRM Smart Business Solution *
+ * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
+ * This program is free software, you can redistribute it and/or modify it *
+ * under the terms version 2 of the GNU General Public License as published *
+ * by the Free Software Foundation. This program is distributed in the hope *
+ * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
+ * See the GNU General Public License for more details. *
+ * You should have received a copy of the GNU General Public License along *
+ * with this program, if not, write to the Free Software Foundation, Inc., *
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
+ * For the text or an alternative of this public license, you may reach us *
+ * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
+ * or via info@compiere.org or http://www.compiere.org/license.html *
+ *****************************************************************************/
+package org.compiere.model;
+
+import java.math.BigDecimal;
+import java.sql.Timestamp;
+import org.compiere.util.KeyNamePair;
+
+/** Generated Interface for AD_Tab_Customization
+ * @author Adempiere (generated)
+ * @version Release 3.6.0LTS
+ */
+public interface I_AD_Tab_Customization
+{
+
+ /** TableName=AD_Tab_Customization */
+ public static final String Table_Name = "AD_Tab_Customization";
+
+ /** AD_Table_ID=200008 */
+ public static final int Table_ID = 200008;
+
+ KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
+
+ /** AccessLevel = 4 - System
+ */
+ BigDecimal accessLevel = BigDecimal.valueOf(4);
+
+ /** Load Meta Data */
+
+ /** Column name AD_Client_ID */
+ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
+
+ /** Get Client.
+ * Client/Tenant for this installation.
+ */
+ public int getAD_Client_ID();
+
+ /** Column name AD_Org_ID */
+ public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
+
+ /** Set Organization.
+ * Organizational entity within client
+ */
+ public void setAD_Org_ID (int AD_Org_ID);
+
+ /** Get Organization.
+ * Organizational entity within client
+ */
+ public int getAD_Org_ID();
+
+ /** Column name AD_Tab_Customization_ID */
+ public static final String COLUMNNAME_AD_Tab_Customization_ID = "AD_Tab_Customization_ID";
+
+ /** Set Tab Customization */
+ public void setAD_Tab_Customization_ID (int AD_Tab_Customization_ID);
+
+ /** Get Tab Customization */
+ public int getAD_Tab_Customization_ID();
+
+ /** Column name AD_Tab_ID */
+ public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID";
+
+ /** Set Tab.
+ * Tab within a Window
+ */
+ public void setAD_Tab_ID (int AD_Tab_ID);
+
+ /** Get Tab.
+ * Tab within a Window
+ */
+ public int getAD_Tab_ID();
+
+ public org.compiere.model.I_AD_Tab getAD_Tab() throws RuntimeException;
+
+ /** Column name AD_User_ID */
+ public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
+
+ /** Set User/Contact.
+ * User within the system - Internal or Business Partner Contact
+ */
+ public void setAD_User_ID (int AD_User_ID);
+
+ /** Get User/Contact.
+ * User within the system - Internal or Business Partner Contact
+ */
+ public int getAD_User_ID();
+
+ public org.compiere.model.I_AD_User getAD_User() throws RuntimeException;
+
+ /** Column name Created */
+ public static final String COLUMNNAME_Created = "Created";
+
+ /** Get Created.
+ * Date this record was created
+ */
+ public Timestamp getCreated();
+
+ /** Column name CreatedBy */
+ public static final String COLUMNNAME_CreatedBy = "CreatedBy";
+
+ /** Get Created By.
+ * User who created this records
+ */
+ public int getCreatedBy();
+
+ /** Column name Custom */
+ public static final String COLUMNNAME_Custom = "Custom";
+
+ /** Set Custom */
+ public void setCustom (String Custom);
+
+ /** Get Custom */
+ public String getCustom();
+
+ /** Column name IsActive */
+ public static final String COLUMNNAME_IsActive = "IsActive";
+
+ /** Set Active.
+ * The record is active in the system
+ */
+ public void setIsActive (boolean IsActive);
+
+ /** Get Active.
+ * The record is active in the system
+ */
+ public boolean isActive();
+
+ /** Column name Updated */
+ public static final String COLUMNNAME_Updated = "Updated";
+
+ /** Get Updated.
+ * Date this record was updated
+ */
+ public Timestamp getUpdated();
+
+ /** Column name UpdatedBy */
+ public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
+
+ /** Get Updated By.
+ * User who updated this records
+ */
+ public int getUpdatedBy();
+}
diff --git a/org.adempiere.base/src/org/adempiere/model/X_AD_Tab_Customization.java b/org.adempiere.base/src/org/compiere/model/X_AD_Tab_Customization.java
similarity index 63%
rename from org.adempiere.base/src/org/adempiere/model/X_AD_Tab_Customization.java
rename to org.adempiere.base/src/org/compiere/model/X_AD_Tab_Customization.java
index 3d2e06282a..a260531fbf 100644
--- a/org.adempiere.base/src/org/adempiere/model/X_AD_Tab_Customization.java
+++ b/org.adempiere.base/src/org/compiere/model/X_AD_Tab_Customization.java
@@ -1,38 +1,35 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
- * This program is free software; you can redistribute it and/or modify it *
+ * This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
- * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
+ * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
- * with this program; if not, write to the Free Software Foundation, Inc., *
+ * with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
-package org.adempiere.model;
+package org.compiere.model;
-import java.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
-import java.util.logging.Level;
-import org.compiere.model.*;
/** Generated Model for AD_Tab_Customization
* @author Adempiere (generated)
- * @version Release 3.5.2a - $Id$ */
+ * @version Release 3.6.0LTS - $Id$ */
public class X_AD_Tab_Customization extends PO implements I_AD_Tab_Customization, I_Persistent
{
/**
*
*/
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 20120813L;
/** Standard Constructor */
public X_AD_Tab_Customization (Properties ctx, int AD_Tab_Customization_ID, String trxName)
@@ -52,7 +49,7 @@ public class X_AD_Tab_Customization extends PO implements I_AD_Tab_Customization
}
/** AccessLevel
- * @return 3 - Client - Org
+ * @return 4 - System
*/
protected int get_AccessLevel()
{
@@ -73,21 +70,30 @@ public class X_AD_Tab_Customization extends PO implements I_AD_Tab_Customization
return sb.toString();
}
- public I_AD_Tab getAD_Tab() throws Exception
+ /** Set Tab Customization.
+ @param AD_Tab_Customization_ID Tab Customization */
+ public void setAD_Tab_Customization_ID (int AD_Tab_Customization_ID)
+ {
+ if (AD_Tab_Customization_ID < 1)
+ set_ValueNoCheck (COLUMNNAME_AD_Tab_Customization_ID, null);
+ else
+ set_ValueNoCheck (COLUMNNAME_AD_Tab_Customization_ID, Integer.valueOf(AD_Tab_Customization_ID));
+ }
+
+ /** Get Tab Customization.
+ @return Tab Customization */
+ public int getAD_Tab_Customization_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_Customization_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ public org.compiere.model.I_AD_Tab getAD_Tab() throws RuntimeException
{
- Class> clazz = MTable.getClass(I_AD_Tab.Table_Name);
- I_AD_Tab result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_AD_Tab)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tab_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
+ return (org.compiere.model.I_AD_Tab)MTable.get(getCtx(), org.compiere.model.I_AD_Tab.Table_Name)
+ .getPO(getAD_Tab_ID(), get_TrxName()); }
/** Set Tab.
@param AD_Tab_ID
@@ -112,41 +118,10 @@ public class X_AD_Tab_Customization extends PO implements I_AD_Tab_Customization
return ii.intValue();
}
- /** Set AD_Tab_Customization_ID.
- @param AD_Tab_Customization_ID AD_Tab_Customization_ID */
- public void setAD_Tab_Customization_ID (int AD_Tab_Customization_ID)
- {
- if (AD_Tab_Customization_ID < 1)
- set_ValueNoCheck (COLUMNNAME_AD_Tab_Customization_ID, null);
- else
- set_ValueNoCheck (COLUMNNAME_AD_Tab_Customization_ID, Integer.valueOf(AD_Tab_Customization_ID));
- }
-
- /** Get AD_Tab_Customization_ID.
- @return AD_Tab_Customization_ID */
- public int getAD_Tab_Customization_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_Customization_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_AD_User getAD_User() throws Exception
+ public org.compiere.model.I_AD_User getAD_User() throws RuntimeException
{
- Class> clazz = MTable.getClass(I_AD_User.Table_Name);
- I_AD_User result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
+ return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
+ .getPO(getAD_User_ID(), get_TrxName()); }
/** Set User/Contact.
@param AD_User_ID
@@ -154,9 +129,10 @@ public class X_AD_Tab_Customization extends PO implements I_AD_Tab_Customization
*/
public void setAD_User_ID (int AD_User_ID)
{
- if (AD_User_ID < 1)
- throw new IllegalArgumentException ("AD_User_ID is mandatory.");
- set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
+ if (AD_User_ID < 1)
+ set_Value (COLUMNNAME_AD_User_ID, null);
+ else
+ set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}
/** Get User/Contact.
@@ -174,8 +150,6 @@ public class X_AD_Tab_Customization extends PO implements I_AD_Tab_Customization
@param Custom Custom */
public void setCustom (String Custom)
{
- if (Custom == null)
- throw new IllegalArgumentException ("Custom is mandatory.");
set_Value (COLUMNNAME_Custom, Custom);
}