blob: 03d1de544cfa304388f366fbdf2401461350fdc4 [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001<?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
xg353yb6b7bef2017-04-11 13:30:42 +020011
ChrisC025301d2017-01-31 11:40:03 +010012 http://www.apache.org/licenses/LICENSE-2.0
xg353yb6b7bef2017-04-11 13:30:42 +020013
ChrisC025301d2017-01-31 11:40:03 +010014 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
22<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
23
24<hibernate-mapping package="org.openecomp.mso.db.catalog.beans">
25 <class name="VnfResource" table="VNF_RESOURCE">
26 <meta attribute="class-description">
27 This class describes a VNF Resource
28 </meta>
xg353yb6b7bef2017-04-11 13:30:42 +020029
Arthur Martella62cd6aa2017-09-08 13:27:46 -040030 <id name="modelUuid" type="string" column="MODEL_UUID" length="200"/>
31 <property name="modelInvariantUuid" type="string" column="MODEL_INVARIANT_UUID" length="200"/>
32 <property name="version" type="string" column="MODEL_VERSION" length="20" not-null="true"/>
33 <property name="modelName" type="string" column="MODEL_NAME" length="200"/>
34 <property name="toscaNodeType" type="string" column="TOSCA_NODE_TYPE" length="200"/>
35 <property name="description" type="string" column="DESCRIPTION" length="1200"/>
36 <property name="orchestrationMode" type="string" column="ORCHESTRATION_MODE" length="20" not-null="true"/>
37 <property name="aicVersionMin" type="string" column="AIC_VERSION_MIN" length="20"/>
38 <property name="aicVersionMax" type="string" column="AIC_VERSION_MAX" length="20"/>
c001491072a4218f2018-01-19 14:36:23 +080039 <property name="category" type="string" column="RESOURCE_CATEGORY" length="20"/>
40 <property name="subCategory" type="string" column="RESOURCE_SUB_CATEGORY" length="20"/>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040041 <property name="heatTemplateArtifactUUId" type="string" column="HEAT_TEMPLATE_ARTIFACT_UUID" length="200" />
Jim Hahn20e60c82017-10-12 11:32:34 -040042 <property name="created" type="timestamp" generated="insert" update="false" insert="false" not-null="true">
43 <column name="CREATION_TIMESTAMP" default="CURRENT_TIMESTAMP"/>
44 </property>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040045
46 <set name="vnfResourceCustomizations" inverse="true" access="field" cascade="all">
47 <key column="VNF_RESOURCE_MODEL_UUID" not-null="true" />
48 <one-to-many class="VnfResourceCustomization" />
49 </set>
50
51 <set name="vfModules" inverse="true" cascade="all">
52 <key column="VNF_RESOURCE_MODEL_UUID" not-null="true" />
53 <one-to-many class="VfModule" />
54 </set>
ChrisC025301d2017-01-31 11:40:03 +010055 </class>
ChrisC025301d2017-01-31 11:40:03 +010056</hibernate-mapping>