diff options
author | Steve Smokowski <ss835w@att.com> | 2019-06-09 19:45:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-06-09 19:45:23 +0000 |
commit | bb271cc82880d15dc9396170ac6ed95de22958a3 (patch) | |
tree | e7f5379db4eff4dbeea5ae9d801f98313e5609d4 /mso-api-handlers/mso-requests-db | |
parent | fabcae6be329ed3c2d9aa0bb763dfe6cbe66b62b (diff) | |
parent | b7cde4474b9688a1527254dcae6114123ea00c9c (diff) |
Merge "Added ext_system_error_source column to requestdb"
Diffstat (limited to 'mso-api-handlers/mso-requests-db')
2 files changed, 14 insertions, 2 deletions
diff --git a/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/beans/InfraActiveRequests.java b/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/beans/InfraActiveRequests.java index 9aa04ea8b2..9da6ff21ac 100644 --- a/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/beans/InfraActiveRequests.java +++ b/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/beans/InfraActiveRequests.java @@ -88,6 +88,7 @@ public class InfraActiveRequests extends InfraRequests { .append("requestorId", getRequestorId()).append("configurationId", getConfigurationId()) .append("configurationName", getConfigurationName()).append("operationalEnvId", getOperationalEnvId()) .append("operationalEnvName", getOperationalEnvName()).append("requestUrl", getRequestUrl()) - .append("originalRequestId", getOriginalRequestId()).toString(); + .append("originalRequestId", getOriginalRequestId()) + .append("extSystemErrorSource", getExtSystemErrorSource()).toString(); } } diff --git a/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/beans/InfraRequests.java b/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/beans/InfraRequests.java index 5b40e40eb9..ecc4f46149 100644 --- a/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/beans/InfraRequests.java +++ b/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/beans/InfraRequests.java @@ -155,6 +155,8 @@ public abstract class InfraRequests implements java.io.Serializable { private String requestUrl; @Column(name = "ORIGINAL_REQUEST_ID", length = 45) private String originalRequestId; + @Column(name = "EXT_SYSTEM_ERROR_SOURCE", length = 80) + private String extSystemErrorSource; @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "SO_REQUEST_ID", referencedColumnName = "REQUEST_ID") @@ -580,6 +582,14 @@ public abstract class InfraRequests implements java.io.Serializable { this.originalRequestId = originalRequestId; } + public String getExtSystemErrorSource() { + return this.extSystemErrorSource; + } + + public void setExtSystemErrorSource(String extSystemErrorSource) { + this.extSystemErrorSource = extSystemErrorSource; + } + @PrePersist protected void onCreate() { if (requestScope == null) @@ -642,6 +652,7 @@ public abstract class InfraRequests implements java.io.Serializable { .append("configurationName", getConfigurationName()).append("operationalEnvId", getOperationalEnvId()) .append("operationalEnvName", getOperationalEnvName()).append("instanceGroupId", getInstanceGroupId()) .append("instanceGroupName", getInstanceGroupName()).append("requestUrl", getRequestUrl()) - .append("originalRequestId", originalRequestId).toString(); + .append("originalRequestId", originalRequestId).append("extSystemErrorSource", extSystemErrorSource) + .toString(); } } |