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