From d645d95d18d0d32b5daa52616b846339148bf08e Mon Sep 17 00:00:00 2001 From: "Plummer, Brittany" Date: Wed, 31 Jul 2019 08:30:43 -0500 Subject: 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) Change-Id: I9b9f94c0d0b56a61cd8b9c56e80e5a3ec4819a50 --- .../src/main/java/org/onap/so/db/request/beans/InfraRequests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mso-api-handlers/mso-requests-db/src') 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 = new ArrayList<>(); @ResourceId -- cgit 1.2.3-korg