1710 Rebase - Second Attempt
[so.git] / mso-catalog-db / src / main / resources / VnfResourceCustomization.hbm.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3   ============LICENSE_START=======================================================\r
4   ECOMP MSO\r
5   ================================================================================\r
6   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
7   ================================================================================\r
8   Licensed under the Apache License, Version 2.0 (the "License");\r
9   you may not use this file except in compliance with the License.\r
10   You may obtain a copy of the License at\r
11 \r
12        http://www.apache.org/licenses/LICENSE-2.0\r
13 \r
14   Unless required by applicable law or agreed to in writing, software\r
15   distributed under the License is distributed on an "AS IS" BASIS,\r
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17   See the License for the specific language governing permissions and\r
18   limitations under the License.\r
19   ============LICENSE_END=========================================================\r
20   -->\r
21 <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">\r
22 \r
23 <hibernate-mapping package="org.openecomp.mso.db.catalog.beans">\r
24         <class name="VnfResourceCustomization" table="VNF_RESOURCE_CUSTOMIZATION">\r
25                 <meta attribute="class-description">\r
26                         This class describes a VNF Resource Customization\r
27                 </meta>\r
28                 \r
29         <id name="modelCustomizationUuid"                       column="MODEL_CUSTOMIZATION_UUID"               type="string"           length="200"/>\r
30                 \r
31                 <property name="modelInstanceName"                      column="MODEL_INSTANCE_NAME"                    type="string"           length="200"    not-null="true"/>\r
32                 <property name="minInstances"                           column="MIN_INSTANCES"                                  type="int"                      length="11"/>\r
33                 <property name="maxInstances"                           column="MAX_INSTANCES"                                  type="int"                      length="11"/>\r
34                 <property name="availabilityZoneMaxCount"       column="AVAILABILITY_ZONE_MAX_COUNT"    type="int"                      length="11"/>\r
35                 <property name="nfFunction"                             column="NF_FUNCTION"                                    type="string"           length="200"/>\r
36                 <property name="nfType"                                         column="NF_TYPE"                                                type="string"           length="200"/>\r
37                 <property name="nfRole"                                         column="NF_ROLE"                                                type="string"           length="200"/>\r
38                 <property name="nfNamingCode"                           column="NF_NAMING_CODE"                                 type="string"           length="200"/>\r
39                 <property name="vnfResourceModelUuid"           column="VNF_RESOURCE_MODEL_UUID"                type="string"           length="200"    not-null="true"  />\r
40                 \r
41                 <property name="created" type="timestamp" generated="insert" update="false" insert="false" column="CREATION_TIMESTAMP" not-null="true"/>\r
42                 \r
43                 <set name="serviceResourceCustomizations" inverse="true" cascade="all">\r
44             <key column="SERVICE_MODEL_UUID" not-null="true" />\r
45             <one-to-many class="ServiceToResourceCustomization" />\r
46         </set>\r
47         </class>\r
48 </hibernate-mapping>\r