diff options
author | Plummer, Brittany <brittany.plummer@att.com> | 2019-07-31 08:30:43 -0500 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@att.com> | 2019-07-31 08:30:44 -0500 |
commit | d645d95d18d0d32b5daa52616b846339148bf08e (patch) | |
tree | 7aa7762fc0979b99fb8133f3f669b8d4dfbb465c /mso-api-handlers/mso-requests-db/src/main/java/org | |
parent | 47fb69ff7908ae75777a4f0c7e28c198f0e117ae (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/src/main/java/org')
-rw-r--r-- | mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/beans/InfraRequests.java | 2 |
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 |