summaryrefslogtreecommitdiffstats
path: root/mso-api-handlers/mso-requests-db
diff options
context:
space:
mode:
authorPlummer, Brittany <brittany.plummer@att.com>2019-07-31 08:30:43 -0500
committerBenjamin, Max (mb388a) <mb388a@att.com>2019-07-31 08:30:44 -0500
commitd645d95d18d0d32b5daa52616b846339148bf08e (patch)
tree7aa7762fc0979b99fb8133f3f669b8d4dfbb465c /mso-api-handlers/mso-requests-db
parent47fb69ff7908ae75777a4f0c7e28c198f0e117ae (diff)
Updatable to false to prevent setting fk to null
Updatable to false to prevent setting foreign key to null before delete Issue-ID: SO-2178 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I9b9f94c0d0b56a61cd8b9c56e80e5a3ec4819a50
Diffstat (limited to 'mso-api-handlers/mso-requests-db')
-rw-r--r--mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/beans/InfraRequests.java2
1 files changed, 1 insertions, 1 deletions
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 464cacb6b0..05845dd058 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
@@ -161,7 +161,7 @@ public abstract class InfraRequests implements java.io.Serializable {
private String rollbackExtSystemErrorSource;
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
- @JoinColumn(name = "SO_REQUEST_ID", referencedColumnName = "REQUEST_ID")
+ @JoinColumn(name = "SO_REQUEST_ID", referencedColumnName = "REQUEST_ID", updatable = false)
private List<CloudApiRequests> cloudApiRequests = new ArrayList<>();
@ResourceId