ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame^] | 1 | <?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 | |
| 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> |
| 29 | |
| 30 | <id name="id" type="int" column="id"> |
| 31 | <generator class="native"/> |
| 32 | </id> |
| 33 | |
| 34 | <properties name="uk_template" unique="true"> |
| 35 | <property name="templateName" type="string" > |
| 36 | <column name="TEMPLATE_NAME" length="200" not-null="true"/> |
| 37 | </property> |
| 38 | <property name="version" type="string" > |
| 39 | <column name="VERSION" length="20" not-null="true"/> |
| 40 | </property> |
| 41 | <property name="asdcResourceName" type="string" > |
| 42 | <column name="ASDC_RESOURCE_NAME" default="'MANUAL RECORD'" length="100" not-null="true"/> |
| 43 | </property> |
| 44 | </properties> |
| 45 | |
| 46 | <property name="templatePath" column="TEMPLATE_PATH" type="string" length="100"/> |
| 47 | <property name="templateBody" type="text"> |
| 48 | <column name="TEMPLATE_BODY" not-null="true"/> |
| 49 | </property> |
| 50 | <property name="timeoutMinutes" column="TIMEOUT_MINUTES" type="int"/> |
| 51 | <property name="asdcUuid" type="string" > |
| 52 | <column name="ASDC_UUID" length="200" default="'MANUAL RECORD'" not-null="true"/> |
| 53 | </property> |
| 54 | <property name="description" column="DESCRIPTION" type="string" length="1200"/> |
| 55 | <property name="asdcLabel" column="ASDC_LABEL" type="string" length="200"/> |
| 56 | <property name="created" type="timestamp" generated="insert" update="false" insert="false" > |
| 57 | <column name="CREATION_TIMESTAMP" not-null="true"/> |
| 58 | </property> |
| 59 | <set name="parameters" cascade="all"> |
| 60 | <key column="HEAT_TEMPLATE_ID"/> |
| 61 | <one-to-many class="HeatTemplateParam"/> |
| 62 | </set> |
| 63 | <set name="files" table="HEAT_NESTED_TEMPLATE" cascade="all"> |
| 64 | <key column="CHILD_TEMPLATE_ID"/> |
| 65 | <one-to-many class="HeatTemplate" not-found="ignore"/> |
| 66 | </set> |
| 67 | |
| 68 | </class> |
| 69 | |
| 70 | <class name="HeatTemplateParam" table="HEAT_TEMPLATE_PARAMS"> |
| 71 | <meta attribute="class-description"> |
| 72 | This class describes an input parameter to a heat template |
| 73 | </meta> |
| 74 | |
| 75 | <id name="id" type="int" column="id"> |
| 76 | <generator class="native"/> |
| 77 | </id> |
| 78 | |
| 79 | <properties name="uk_heat_params" unique="true"> |
| 80 | <property name="heatTemplateId" type="int"> |
| 81 | <column name="HEAT_TEMPLATE_ID" not-null="true"/> |
| 82 | </property> |
| 83 | <property name="paramName" type="string" > |
| 84 | <column name="PARAM_NAME" length="100" not-null="true"/> |
| 85 | </property> |
| 86 | </properties> |
| 87 | <property name="required" type="boolean"> |
| 88 | <column name="IS_REQUIRED" not-null="true"/> |
| 89 | </property> |
| 90 | <property name="paramType" column="PARAM_TYPE" type="string" length="20"/> |
| 91 | <property name="paramAlias" column="PARAM_ALIAS" type="string" length="45"/> |
| 92 | </class> |
| 93 | </hibernate-mapping> |