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 | |
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 30 | <id name="artifactUuid" type="string" column="ARTIFACT_UUID" length="200"> |
| 31 | <generator class="assigned" /> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 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 | <property name="templateName" type="string" > |
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 35 | <column name="NAME" length="200" not-null="true"/> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 36 | </property> |
| 37 | <property name="version" type="string" > |
| 38 | <column name="VERSION" length="20" not-null="true"/> |
| 39 | </property> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 40 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 41 | <property name="templateBody" type="text"> |
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 42 | <column name="BODY" not-null="true"/> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 43 | </property> |
| 44 | <property name="timeoutMinutes" column="TIMEOUT_MINUTES" type="int"/> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 45 | <property name="description" column="DESCRIPTION" type="string" length="1200"/> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 46 | <property name="created" type="timestamp" generated="insert" update="false" insert="false" > |
| 47 | <column name="CREATION_TIMESTAMP" not-null="true"/> |
| 48 | </property> |
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 49 | <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"/> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 54 | <one-to-many class="HeatTemplateParam"/> |
| 55 | </set> |
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 56 | |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 57 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 58 | </class> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 59 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 60 | <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> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 64 | |
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 65 | <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> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 69 | |
| 70 | <properties name="uk_heat_params" unique="true"> |
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 71 | <property name="heatTemplateArtifactUuid" type="string" insert="false" update="false"> |
| 72 | <column name="HEAT_TEMPLATE_ARTIFACT_UUID" not-null="true"/> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 73 | </property> |
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 74 | <property name="paramName" type="string" insert="false" update="false"> |
| 75 | <column name="PARAM_NAME" length="100" not-null="true" /> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 76 | </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 Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 84 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 85 | </hibernate-mapping> |