CopyValues must ignore the uuid alternate key column.

This commit is contained in:
Heng Sin Low 2011-02-11 02:09:15 +08:00
parent e6de865fe6
commit 4ad62a2011
1 changed files with 3 additions and 0 deletions

View File

@ -1225,6 +1225,7 @@ public abstract class PO
public static void copyValues (PO from, PO to) public static void copyValues (PO from, PO to)
{ {
s_log.fine("From ID=" + from.get_ID() + " - To ID=" + to.get_ID()); s_log.fine("From ID=" + from.get_ID() + " - To ID=" + to.get_ID());
String uuidColumn = from.get_TableName()+"_UU";
// Different Classes // Different Classes
if (from.getClass() != to.getClass()) if (from.getClass() != to.getClass())
{ {
@ -1241,6 +1242,7 @@ public abstract class PO
|| colName.equals("AD_Client_ID") || colName.equals("AD_Client_ID")
|| colName.equals("AD_Org_ID") || colName.equals("AD_Org_ID")
|| colName.equals("Processing") || colName.equals("Processing")
|| colName.equals(uuidColumn)
) )
; // ignore ; // ignore
else else
@ -1271,6 +1273,7 @@ public abstract class PO
|| colName.equals("AD_Client_ID") || colName.equals("AD_Client_ID")
|| colName.equals("AD_Org_ID") || colName.equals("AD_Org_ID")
|| colName.equals("Processing") || colName.equals("Processing")
|| colName.equals(uuidColumn)
) )
; // ignore ; // ignore
else else