Remove foreign key which is not supported by code 53/17353/1
authorRob Daugherty <rd472p@att.com>
Thu, 5 Oct 2017 15:18:21 +0000 (11:18 -0400)
committerRob Daugherty <rd472p@att.com>
Thu, 5 Oct 2017 15:23:25 +0000 (11:23 -0400)
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>
mso-catalog-db/src/main/resources/VnfResourceCustomization.hbm.xml

index 72e7209..e22b67c 100644 (file)
                \r
                <property name="created" type="timestamp" generated="insert" update="false" insert="false" column="CREATION_TIMESTAMP" not-null="true"/>\r
                \r
+<!--\r
                <set name="vfModuleCustomizations" inverse="true" cascade="all">\r
                        <key column="VF_MODULE_CUST_MODEL_CUSTOMIZATION_UUID" not-null="true" />\r
                        <one-to-many class="VnfResCustomToVfModuleCustom" />\r
                </set>\r
+-->\r
        </class>\r
 </hibernate-mapping>\r