[ 1797661 ] Extend EntityType Length
- Increase EntityType length to 40. - Fixed a minor substring bug in ModelClassGenerator. - Hide the not functional classpath and register extension field from the EntityType window.
This commit is contained in:
parent
92973704be
commit
ff3e3c4cf8
|
@ -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)
|
||||
;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue