diff options
author | 2019-01-25 09:42:37 +0100 | |
---|---|---|
committer | 2019-01-25 09:42:37 +0100 | |
commit | ef8fea9dac61407f29850a34c19a1effd1d4a5b9 (patch) | |
tree | 8ed90ab939c3f280e555b9a7cec0f5dd6e7103c5 /src/main/java/org/onap/nbi/apis/serviceorder/service/ServiceOrderService.java | |
parent | 69197a8abc78ee825d38908cd46690b3c150caa1 (diff) |
force nbi generate id of serviceorder
-fix code
-fix test
Change-Id: Ie6d7802bed61935b5a675e720d060ee9d7e2c865
Issue-ID: EXTAPI-188
Signed-off-by: romaingimbert <romain.gimbert@orange.com>
Diffstat (limited to 'src/main/java/org/onap/nbi/apis/serviceorder/service/ServiceOrderService.java')
-rw-r--r-- | src/main/java/org/onap/nbi/apis/serviceorder/service/ServiceOrderService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/onap/nbi/apis/serviceorder/service/ServiceOrderService.java b/src/main/java/org/onap/nbi/apis/serviceorder/service/ServiceOrderService.java index 47262e2..b851be8 100644 --- a/src/main/java/org/onap/nbi/apis/serviceorder/service/ServiceOrderService.java +++ b/src/main/java/org/onap/nbi/apis/serviceorder/service/ServiceOrderService.java @@ -59,6 +59,7 @@ public class ServiceOrderService { public ServiceOrder createServiceOrder(ServiceOrder serviceOrder){ serviceOrder.setState(StateType.ACKNOWLEDGED); serviceOrder.setOrderDate(new Date()); + serviceOrder.setId(null); for (ServiceOrderItem serviceOrderItem : serviceOrder.getOrderItem()) { serviceOrderItem.setState(StateType.ACKNOWLEDGED); } |