diff --git a/base/src/org/adempiere/util/ModelClassGenerator.java b/base/src/org/adempiere/util/ModelClassGenerator.java index 501d46881f..35b3826aa5 100644 --- a/base/src/org/adempiere/util/ModelClassGenerator.java +++ b/base/src/org/adempiere/util/ModelClassGenerator.java @@ -562,7 +562,7 @@ public class ModelClassGenerator sb.append(columnName).append(".length() > ").append(fieldLength).append(")").append(NL) .append("\t\t{").append(NL) .append("\t\t\tlog.warning(\"Length > ").append(fieldLength).append(" - truncated\");").append(NL) - .append("\t\t\t").append(columnName).append(" = ").append(columnName).append(".substring(0, ").append(fieldLength-1).append(");").append(NL) + .append("\t\t\t").append(columnName).append(" = ").append(columnName).append(".substring(0, ").append(fieldLength).append(");").append(NL) .append("\t\t}").append(NL) ; } diff --git a/base/src/org/compiere/model/MEntityType.java b/base/src/org/compiere/model/MEntityType.java index 048e0505d2..4b2b99b5c6 100644 --- a/base/src/org/compiere/model/MEntityType.java +++ b/base/src/org/compiere/model/MEntityType.java @@ -241,6 +241,7 @@ public class MEntityType extends X_AD_EntityType } else // new { + /* setEntityType(getEntityType().toUpperCase()); // upper case if (getEntityType().trim().length() < 4) { @@ -260,6 +261,7 @@ public class MEntityType extends X_AD_EntityType + " - Must be ASCII Letter or Digit"); return false; } + */ setAD_EntityType_ID(); } // new s_entityTypes = null; // reset diff --git a/base/src/org/compiere/model/X_AD_Column.java b/base/src/org/compiere/model/X_AD_Column.java index 26bfdf705d..177f97e7e7 100644 --- a/base/src/org/compiere/model/X_AD_Column.java +++ b/base/src/org/compiere/model/X_AD_Column.java @@ -425,10 +425,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Element.java b/base/src/org/compiere/model/X_AD_Element.java index 32134d82ba..0a94b0d95d 100644 --- a/base/src/org/compiere/model/X_AD_Element.java +++ b/base/src/org/compiere/model/X_AD_Element.java @@ -160,10 +160,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_EntityType.java b/base/src/org/compiere/model/X_AD_EntityType.java index 91e584a7bc..5c31679dfa 100644 --- a/base/src/org/compiere/model/X_AD_EntityType.java +++ b/base/src/org/compiere/model/X_AD_EntityType.java @@ -147,10 +147,10 @@ public class X_AD_EntityType extends PO implements I_AD_EntityType, I_Persistent { if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory."); - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_ValueNoCheck (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Field.java b/base/src/org/compiere/model/X_AD_Field.java index 5a2d5382e2..5cb9c837c7 100644 --- a/base/src/org/compiere/model/X_AD_Field.java +++ b/base/src/org/compiere/model/X_AD_Field.java @@ -325,10 +325,10 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_FieldGroup.java b/base/src/org/compiere/model/X_AD_FieldGroup.java index 00fb6a66f3..c5aba060fd 100644 --- a/base/src/org/compiere/model/X_AD_FieldGroup.java +++ b/base/src/org/compiere/model/X_AD_FieldGroup.java @@ -104,10 +104,10 @@ public class X_AD_FieldGroup extends PO implements I_AD_FieldGroup, I_Persistent public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Form.java b/base/src/org/compiere/model/X_AD_Form.java index af2fa1719e..d5142a6a8e 100644 --- a/base/src/org/compiere/model/X_AD_Form.java +++ b/base/src/org/compiere/model/X_AD_Form.java @@ -180,10 +180,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Image.java b/base/src/org/compiere/model/X_AD_Image.java index 79e43c571f..ae1c7e3317 100644 --- a/base/src/org/compiere/model/X_AD_Image.java +++ b/base/src/org/compiere/model/X_AD_Image.java @@ -143,10 +143,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_InfoColumn.java b/base/src/org/compiere/model/X_AD_InfoColumn.java index 0185c98ceb..83cc5e8386 100644 --- a/base/src/org/compiere/model/X_AD_InfoColumn.java +++ b/base/src/org/compiere/model/X_AD_InfoColumn.java @@ -232,10 +232,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_InfoWindow.java b/base/src/org/compiere/model/X_AD_InfoWindow.java index 878f8efe6f..24c3f1ea10 100644 --- a/base/src/org/compiere/model/X_AD_InfoWindow.java +++ b/base/src/org/compiere/model/X_AD_InfoWindow.java @@ -166,10 +166,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Menu.java b/base/src/org/compiere/model/X_AD_Menu.java index aa8a1d16a5..e1f058c712 100644 --- a/base/src/org/compiere/model/X_AD_Menu.java +++ b/base/src/org/compiere/model/X_AD_Menu.java @@ -389,10 +389,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Message.java b/base/src/org/compiere/model/X_AD_Message.java index 8d141f2a2a..417f2aecf7 100644 --- a/base/src/org/compiere/model/X_AD_Message.java +++ b/base/src/org/compiere/model/X_AD_Message.java @@ -107,10 +107,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Modification.java b/base/src/org/compiere/model/X_AD_Modification.java index 3a4747cf95..32af0490bb 100644 --- a/base/src/org/compiere/model/X_AD_Modification.java +++ b/base/src/org/compiere/model/X_AD_Modification.java @@ -127,10 +127,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_ValueNoCheck (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Process.java b/base/src/org/compiere/model/X_AD_Process.java index b0a1adc9b2..952146af83 100644 --- a/base/src/org/compiere/model/X_AD_Process.java +++ b/base/src/org/compiere/model/X_AD_Process.java @@ -297,10 +297,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Process_Para.java b/base/src/org/compiere/model/X_AD_Process_Para.java index 9b8d3a8ebb..09176fded9 100644 --- a/base/src/org/compiere/model/X_AD_Process_Para.java +++ b/base/src/org/compiere/model/X_AD_Process_Para.java @@ -347,10 +347,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Ref_List.java b/base/src/org/compiere/model/X_AD_Ref_List.java index ad85802290..8104e5f98e 100644 --- a/base/src/org/compiere/model/X_AD_Ref_List.java +++ b/base/src/org/compiere/model/X_AD_Ref_List.java @@ -166,10 +166,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Ref_Table.java b/base/src/org/compiere/model/X_AD_Ref_Table.java index dbd5afbcbb..c3367d371c 100644 --- a/base/src/org/compiere/model/X_AD_Ref_Table.java +++ b/base/src/org/compiere/model/X_AD_Ref_Table.java @@ -213,10 +213,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Reference.java b/base/src/org/compiere/model/X_AD_Reference.java index ffa9a9a724..0c00193e7b 100644 --- a/base/src/org/compiere/model/X_AD_Reference.java +++ b/base/src/org/compiere/model/X_AD_Reference.java @@ -127,10 +127,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_ReplicationStrategy.java b/base/src/org/compiere/model/X_AD_ReplicationStrategy.java index 05d2aa5656..d0e56715f4 100644 --- a/base/src/org/compiere/model/X_AD_ReplicationStrategy.java +++ b/base/src/org/compiere/model/X_AD_ReplicationStrategy.java @@ -126,10 +126,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_ReplicationTable.java b/base/src/org/compiere/model/X_AD_ReplicationTable.java index 71866f0e76..513a5b9a0a 100644 --- a/base/src/org/compiere/model/X_AD_ReplicationTable.java +++ b/base/src/org/compiere/model/X_AD_ReplicationTable.java @@ -190,10 +190,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_ReportView.java b/base/src/org/compiere/model/X_AD_ReportView.java index b55f8ee057..a594329a5b 100644 --- a/base/src/org/compiere/model/X_AD_ReportView.java +++ b/base/src/org/compiere/model/X_AD_ReportView.java @@ -165,10 +165,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Tab.java b/base/src/org/compiere/model/X_AD_Tab.java index 61b55faa33..d12670499a 100644 --- a/base/src/org/compiere/model/X_AD_Tab.java +++ b/base/src/org/compiere/model/X_AD_Tab.java @@ -423,10 +423,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Table.java b/base/src/org/compiere/model/X_AD_Table.java index e8506aef4d..d549591881 100644 --- a/base/src/org/compiere/model/X_AD_Table.java +++ b/base/src/org/compiere/model/X_AD_Table.java @@ -263,10 +263,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Task.java b/base/src/org/compiere/model/X_AD_Task.java index eb4d7447d8..119d87bf62 100644 --- a/base/src/org/compiere/model/X_AD_Task.java +++ b/base/src/org/compiere/model/X_AD_Task.java @@ -160,10 +160,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Val_Rule.java b/base/src/org/compiere/model/X_AD_Val_Rule.java index 2e9d0d0e97..c9961b1ff8 100644 --- a/base/src/org/compiere/model/X_AD_Val_Rule.java +++ b/base/src/org/compiere/model/X_AD_Val_Rule.java @@ -149,10 +149,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_WF_NextCondition.java b/base/src/org/compiere/model/X_AD_WF_NextCondition.java index 071ba1b681..4b425bfa2e 100644 --- a/base/src/org/compiere/model/X_AD_WF_NextCondition.java +++ b/base/src/org/compiere/model/X_AD_WF_NextCondition.java @@ -213,10 +213,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_WF_Node.java b/base/src/org/compiere/model/X_AD_WF_Node.java index e7f939b2de..abc5555b41 100644 --- a/base/src/org/compiere/model/X_AD_WF_Node.java +++ b/base/src/org/compiere/model/X_AD_WF_Node.java @@ -739,10 +739,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_WF_NodeNext.java b/base/src/org/compiere/model/X_AD_WF_NodeNext.java index 730109c6b8..7cefad74a9 100644 --- a/base/src/org/compiere/model/X_AD_WF_NodeNext.java +++ b/base/src/org/compiere/model/X_AD_WF_NodeNext.java @@ -200,10 +200,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_WF_Node_Para.java b/base/src/org/compiere/model/X_AD_WF_Node_Para.java index 0446408275..b9ca980394 100644 --- a/base/src/org/compiere/model/X_AD_WF_Node_Para.java +++ b/base/src/org/compiere/model/X_AD_WF_Node_Para.java @@ -251,10 +251,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } 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 df06f2e1cb..93f52ecf44 100644 --- a/base/src/org/compiere/model/X_AD_WF_Responsible.java +++ b/base/src/org/compiere/model/X_AD_WF_Responsible.java @@ -190,10 +190,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Window.java b/base/src/org/compiere/model/X_AD_Window.java index 477275ed62..98983fc1bc 100644 --- a/base/src/org/compiere/model/X_AD_Window.java +++ b/base/src/org/compiere/model/X_AD_Window.java @@ -208,10 +208,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Workbench.java b/base/src/org/compiere/model/X_AD_Workbench.java index 05d733515c..4fcc95454c 100644 --- a/base/src/org/compiere/model/X_AD_Workbench.java +++ b/base/src/org/compiere/model/X_AD_Workbench.java @@ -195,10 +195,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_WorkbenchWindow.java b/base/src/org/compiere/model/X_AD_WorkbenchWindow.java index a405e30122..181719d3fa 100644 --- a/base/src/org/compiere/model/X_AD_WorkbenchWindow.java +++ b/base/src/org/compiere/model/X_AD_WorkbenchWindow.java @@ -301,10 +301,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_AD_Workflow.java b/base/src/org/compiere/model/X_AD_Workflow.java index 600b288659..d21f146800 100644 --- a/base/src/org/compiere/model/X_AD_Workflow.java +++ b/base/src/org/compiere/model/X_AD_Workflow.java @@ -422,10 +422,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_PA_ColorSchema.java b/base/src/org/compiere/model/X_PA_ColorSchema.java index 67effc2c36..6de5a97d4e 100644 --- a/base/src/org/compiere/model/X_PA_ColorSchema.java +++ b/base/src/org/compiere/model/X_PA_ColorSchema.java @@ -204,10 +204,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); } diff --git a/base/src/org/compiere/model/X_PA_MeasureCalc.java b/base/src/org/compiere/model/X_PA_MeasureCalc.java index 2aa35d173d..3f9b3107ab 100644 --- a/base/src/org/compiere/model/X_PA_MeasureCalc.java +++ b/base/src/org/compiere/model/X_PA_MeasureCalc.java @@ -198,10 +198,10 @@ public static final int ENTITYTYPE_AD_Reference_ID=389; */ public void setEntityType (String EntityType) { - if (EntityType.length() > 4) + if (EntityType.length() > 40) { - log.warning("Length > 4 - truncated"); - EntityType = EntityType.substring(0, 3); + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); } set_Value (COLUMNNAME_EntityType, EntityType); }