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