Create uuid during 2pack export.
This commit is contained in:
parent
d31059cc6d
commit
c6eeb2c76e
|
@ -3,6 +3,7 @@ package org.adempiere.pipo2;
|
|||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
import java.util.UUID;
|
||||
|
||||
import javax.xml.transform.sax.TransformerHandler;
|
||||
|
||||
|
@ -286,6 +287,13 @@ public class PoExporter {
|
|||
} else if (DisplayType.isLOB(displayType)) {
|
||||
addBlob(columnName);
|
||||
} else {
|
||||
if (columnName.equals(po.get_TableName() +"_UU")) {
|
||||
if (po.get_Value(columnName) == null) {
|
||||
UUID uuid = UUID.randomUUID();
|
||||
po.set_ValueOfColumn(columnName, uuid.toString());
|
||||
po.saveEx();
|
||||
}
|
||||
}
|
||||
add(columnName, "", new AttributesImpl());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue