Remove foreign key which is not supported by code
The foreign key we fixed in the VNF_RES_CUSTOM_TO_VF_MODULE_CUSTOM
table is blocking distribution of the model. The insert that's
failing is:
insert into VNF_RES_CUSTOM_TO_VF_MODULE_CUSTOM (
VNF_RESOURCE_CUST_MODEL_CUSTOMIZATION_UUID,
VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID)
values (?, ?);
The error is: "foreign key constraint fails"
Issue: SO-180
Change-Id: I8d98bde144eb666430632b6089d8d27d66527884
Signed-off-by: Rob Daugherty <rd472p@att.com>
diff --git a/mso-catalog-db/src/main/resources/VnfResourceCustomization.hbm.xml b/mso-catalog-db/src/main/resources/VnfResourceCustomization.hbm.xml
index 72e7209..e22b67c 100644
--- a/mso-catalog-db/src/main/resources/VnfResourceCustomization.hbm.xml
+++ b/mso-catalog-db/src/main/resources/VnfResourceCustomization.hbm.xml
@@ -40,9 +40,11 @@
<property name="created" type="timestamp" generated="insert" update="false" insert="false" column="CREATION_TIMESTAMP" not-null="true"/>
+<!--
<set name="vfModuleCustomizations" inverse="true" cascade="all">
<key column="VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID" not-null="true" />
<one-to-many class="VnfResCustomToVfModuleCustom" />
</set>
+-->
</class>
</hibernate-mapping>