blob: 2fb64aa20d4956390a84acb0f78c17414e2a9227 [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="HeatTemplate" table="HEAT_TEMPLATE">
26 <meta attribute="class-description">
27 This class describes a HEAT template
28 </meta>
xg353yb6b7bef2017-04-11 13:30:42 +020029
Arthur Martella62cd6aa2017-09-08 13:27:46 -040030 <id name="artifactUuid" type="string" column="ARTIFACT_UUID" length="200">
31 <generator class="assigned" />
ChrisC025301d2017-01-31 11:40:03 +010032 </id>
xg353yb6b7bef2017-04-11 13:30:42 +020033
ChrisC025301d2017-01-31 11:40:03 +010034 <property name="templateName" type="string" >
Arthur Martella62cd6aa2017-09-08 13:27:46 -040035 <column name="NAME" length="200" not-null="true"/>
ChrisC025301d2017-01-31 11:40:03 +010036 </property>
37 <property name="version" type="string" >
38 <column name="VERSION" length="20" not-null="true"/>
39 </property>
xg353yb6b7bef2017-04-11 13:30:42 +020040
ChrisC025301d2017-01-31 11:40:03 +010041 <property name="templateBody" type="text">
Arthur Martella62cd6aa2017-09-08 13:27:46 -040042 <column name="BODY" not-null="true"/>
ChrisC025301d2017-01-31 11:40:03 +010043 </property>
44 <property name="timeoutMinutes" column="TIMEOUT_MINUTES" type="int"/>
ChrisC025301d2017-01-31 11:40:03 +010045 <property name="description" column="DESCRIPTION" type="string" length="1200"/>
Jim Hahn20e60c82017-10-12 11:32:34 -040046 <property name="created" type="timestamp" generated="insert" update="false" insert="false" not-null="true">
47 <column name="CREATION_TIMESTAMP" default="CURRENT_TIMESTAMP"/>
48 </property>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040049 <property name="artifactChecksum" type="string">
50 <column name="ARTIFACT_CHECKSUM" length="200" default="'MANUAL RECORD'" not-null="true"/>
51 </property>
52 <set name="parameters" inverse="true" cascade="all">
53 <key column="HEAT_TEMPLATE_ARTIFACT_UUID"/>
ChrisC025301d2017-01-31 11:40:03 +010054 <one-to-many class="HeatTemplateParam"/>
55 </set>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040056
xg353yb6b7bef2017-04-11 13:30:42 +020057
ChrisC025301d2017-01-31 11:40:03 +010058 </class>
xg353yb6b7bef2017-04-11 13:30:42 +020059
ChrisC025301d2017-01-31 11:40:03 +010060 <class name="HeatTemplateParam" table="HEAT_TEMPLATE_PARAMS">
61 <meta attribute="class-description">
62 This class describes an input parameter to a heat template
63 </meta>
xg353yb6b7bef2017-04-11 13:30:42 +020064
Arthur Martella62cd6aa2017-09-08 13:27:46 -040065 <composite-id>
66 <key-property name="heatTemplateArtifactUuid" column="HEAT_TEMPLATE_ARTIFACT_UUID" type="string" />
67 <key-property name="paramName" column="PARAM_NAME" type="string" />
68 </composite-id>
ChrisC025301d2017-01-31 11:40:03 +010069
70 <properties name="uk_heat_params" unique="true">
Arthur Martella62cd6aa2017-09-08 13:27:46 -040071 <property name="heatTemplateArtifactUuid" type="string" insert="false" update="false">
72 <column name="HEAT_TEMPLATE_ARTIFACT_UUID" not-null="true"/>
ChrisC025301d2017-01-31 11:40:03 +010073 </property>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040074 <property name="paramName" type="string" insert="false" update="false">
75 <column name="PARAM_NAME" length="100" not-null="true" />
ChrisC025301d2017-01-31 11:40:03 +010076 </property>
77 </properties>
78 <property name="required" type="boolean">
79 <column name="IS_REQUIRED" not-null="true"/>
80 </property>
81 <property name="paramType" column="PARAM_TYPE" type="string" length="20"/>
82 <property name="paramAlias" column="PARAM_ALIAS" type="string" length="45"/>
83 </class>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040084
ChrisC025301d2017-01-31 11:40:03 +010085</hibernate-mapping>