From 30311f6b0a28f713e6fc1fa8b9beb9b25b7abce9 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 7 Nov 2018 17:44:23 -0200 Subject: [PATCH] IDEMPIERE-3810 New IDs display type (AD_Reference) created via 2pack are created as String --- org.adempiere.base/src/org/compiere/util/DisplayType.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/util/DisplayType.java b/org.adempiere.base/src/org/compiere/util/DisplayType.java index 517d8f0d72..e7c5fb5c96 100644 --- a/org.adempiere.base/src/org/compiere/util/DisplayType.java +++ b/org.adempiere.base/src/org/compiere/util/DisplayType.java @@ -655,6 +655,9 @@ public final class DisplayType if (!DisplayType.isText(displayType)) s_log.severe("Unhandled Data Type = " + displayType); + if (columnName.endsWith("_ID")) + return "NUMBER(10)"; + return "VARCHAR2(" + fieldLength + ")"; } // getSQLDataType