diff options
Diffstat (limited to 'src/main/java')
-rwxr-xr-x | src/main/java/org/onap/nbi/apis/hub/HubResource.java | 2 | ||||
-rw-r--r-- | src/main/java/org/onap/nbi/apis/serviceorder/service/ServiceOrderService.java | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/onap/nbi/apis/hub/HubResource.java b/src/main/java/org/onap/nbi/apis/hub/HubResource.java index cccd0a8..d9ee2e5 100755 --- a/src/main/java/org/onap/nbi/apis/hub/HubResource.java +++ b/src/main/java/org/onap/nbi/apis/hub/HubResource.java @@ -62,7 +62,7 @@ public class HubResource extends ResourceManagement { @PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<Subscriber> createEventSubscription(@RequestBody Subscription subscription) { logger.debug("POST request for subscription : {}", subscription); - + subscription.setId(null); Subscriber subscriber = subscriptionService.createSubscription(subscription); URI location = ServletUriComponentsBuilder 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); } |