IDEMPIERE-1649:Reference of User1_id, User2_id in new table is create incorrect

This commit is contained in:
hieplq 2014-05-08 09:54:40 -05:00
parent 682ebf5955
commit 908050c3bd
1 changed files with 2 additions and 1 deletions

View File

@ -751,7 +751,7 @@ public class MColumn extends X_AD_Column
setIsIdentifier(false); setIsIdentifier(false);
setIsUpdateable(false); setIsUpdateable(false);
setIsAlwaysUpdateable(false); setIsAlwaysUpdateable(false);
setIsKey(true); setIsKey(false);
} else if (getAD_Table().getTableName().concat("_ID").equals(getColumnName())) { } else if (getAD_Table().getTableName().concat("_ID").equals(getColumnName())) {
// ID key column // ID key column
setAD_Reference_ID(DisplayType.ID); setAD_Reference_ID(DisplayType.ID);
@ -764,6 +764,7 @@ public class MColumn extends X_AD_Column
setIsIdentifier(false); setIsIdentifier(false);
setIsUpdateable(false); setIsUpdateable(false);
setIsAlwaysUpdateable(false); setIsAlwaysUpdateable(false);
setIsKey(true);
} else { } else {
// get defaults from most used case // get defaults from most used case
String sql = "" String sql = ""