fix bug [ 1665769 ] ID foreign columns created from DB wrongly

This commit is contained in:
Carlos Ruiz 2007-02-22 03:00:02 +00:00
parent 0ab66bd9e5
commit 2c67c9ee50
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ public class TableCreateColumns extends SvrProcess
column.setAD_Reference_Value_ID (190); column.setAD_Reference_Value_ID (190);
} }
// ID // ID
else if (columnName.endsWith ("_ID")) else if (columnName.toUpperCase().endsWith ("_ID"))
column.setAD_Reference_ID (DisplayType.TableDir); column.setAD_Reference_ID (DisplayType.TableDir);
// Date // Date
else if (dataType == Types.DATE || dataType == Types.TIME else if (dataType == Types.DATE || dataType == Types.TIME