NetworkResource modelInvariantUUID is too short 43/20443/1
authorRob Daugherty <rd472p@att.com>
Tue, 24 Oct 2017 21:09:04 +0000 (17:09 -0400)
committerRob Daugherty <rd472p@att.com>
Tue, 24 Oct 2017 21:09:04 +0000 (17:09 -0400)
It is currently 20.  It should be 200.

I'm also fixing HeatFiles.hbm.xml to match a recent
schema fix (SO-247).

Issue: SO-264
Change-Id: I2bd6fc480310abc80b1a189a83b1e3f73c90149b
Signed-off-by: Rob Daugherty <rd472p@att.com>
mso-catalog-db/src/main/resources/HeatFiles.hbm.xml
mso-catalog-db/src/main/resources/NetworkResource.hbm.xml

index 4674239..5a2c4aa 100644 (file)
@@ -36,7 +36,7 @@
         <property name="version" type="java.lang.String" length="20" not-null="true">\r
             <column name="VERSION" />\r
         </property>\r
-        <property name="fileBody" type="java.lang.String" not-null="true">\r
+        <property name="fileBody" type="text" not-null="true">\r
             <column name="BODY" />\r
         </property>\r
         <property name="created" type="java.sql.Timestamp" generated="insert" update="false" insert="false" not-null="true">\r
index 7f4698e..1599cf5 100644 (file)
@@ -29,7 +29,7 @@
 
                <id       name="modelUUID"                                      column="MODEL_UUID"                                     type="string"   length="200"/>
                <property name="modelName"                                      column="MODEL_NAME"                                     type="string"   length="200"    not-null="true" />
-               <property name="modelInvariantUUID"             column="MODEL_INVARIANT_UUID"                   type="string"   length="20"/>
+               <property name="modelInvariantUUID"             column="MODEL_INVARIANT_UUID"                   type="string"   length="200"/>
                <property name="modelVersion"                           column="MODEL_VERSION"                                  type="string"   length="20"/>
                <property name="toscaNodeType"                          column="TOSCA_NODE_TYPE"                                type="string"   length="200"/>
                <property name="neutronNetworkType"             column="NEUTRON_NETWORK_TYPE"                   type="string"   length="20"/>
@@ -50,4 +50,4 @@
 
        </class>
 
-</hibernate-mapping>
\ No newline at end of file
+</hibernate-mapping>