xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [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 | <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
| 22 | |
| 23 | <hibernate-mapping package="org.openecomp.mso.db.catalog.beans"> |
| 24 | <class name="Model" table="MODEL"> |
| 25 | <meta attribute="class-description"> |
| 26 | This class describes a Model that may be orchestrated |
| 27 | </meta> |
| 28 | |
| 29 | <id name="id" type="int" column="id"> |
| 30 | <generator class="native"/> |
| 31 | </id> |
| 32 | |
| 33 | <properties name="uk1_model" unique="true"> |
| 34 | <property name="modelType" type="string"> |
| 35 | <column name="MODEL_TYPE" not-null="true" length="20"/> |
| 36 | </property> |
| 37 | <property name="modelVersionId" type="string"> |
| 38 | <column name="MODEL_VERSION_ID" not-null="true" length="40"/> |
| 39 | </property> |
| 40 | </properties> |
| 41 | <property name="modelInvariantId" column="MODEL_INVARIANT_ID" type="string" length="40"/> |
| 42 | <property name="modelName" type="string"> |
| 43 | <column name="MODEL_NAME" not-null="true" length="40"/> |
| 44 | </property> |
| 45 | <property name="modelVersion" column="MODEL_VERSION" type="string" length="20"/> |
| 46 | <property name="modelCustomizationId" column="MODEL_CUSTOMIZATION_ID" type="string" length="40"/> |
| 47 | <property name="modelCustomizationName" column="MODEL_CUSTOMIZATION_NAME" type="string" length="40"/> |
Jim Hahn | 20e60c8 | 2017-10-12 11:32:34 -0400 | [diff] [blame^] | 48 | <property name="created" type="timestamp" generated="insert" update="false" insert="false" not-null="true"> |
| 49 | <column name="CREATION_TIMESTAMP" default="CURRENT_TIMESTAMP"/> |
| 50 | </property> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 51 | |
| 52 | <map name="recipes" cascade="all"> |
| 53 | <key column="MODEL_ID"/> |
| 54 | <map-key column="action" type="string"/> |
| 55 | <one-to-many class="ModelRecipe"/> |
| 56 | </map> |
| 57 | </class> |
| 58 | |
| 59 | <class name="ModelRecipe" table="MODEL_RECIPE"> |
| 60 | <meta attribute="class-description"> |
| 61 | This class describes a Model recipe |
| 62 | </meta> |
| 63 | |
| 64 | <id name="id" type="int" column="id"> |
| 65 | <generator class="native"/> |
| 66 | </id> |
| 67 | |
| 68 | <properties name="uk1_model_recipe" unique="true"> |
| 69 | <property name="modelId" type="int"> |
| 70 | <column name="MODEL_ID" not-null="true"/> |
| 71 | </property> |
| 72 | <property name="action" type="string" > |
| 73 | <column name="ACTION" not-null="true" length="20"/> |
| 74 | </property> |
| 75 | </properties> |
| 76 | <property name="schemaVersion" column="SCHEMA_VERSION" type="string" length="20"/> |
| 77 | <property name="description" column="DESCRIPTION" type="string" length="1200"/> |
| 78 | <property name="orchestrationUri" type="string"> |
| 79 | <column name="ORCHESTRATION_URI" not-null="true" length="256"/> |
| 80 | </property> |
| 81 | <property name="modelParamXSD" column="MODEL_PARAM_XSD" type="string" length="2048"/> |
| 82 | <property name="recipeTimeout" column="RECIPE_TIMEOUT" type="int"/> |
Jim Hahn | 20e60c8 | 2017-10-12 11:32:34 -0400 | [diff] [blame^] | 83 | <property name="created" type="timestamp" generated="insert" update="false" insert="false" not-null="true"> |
| 84 | <column name="CREATION_TIMESTAMP" default="CURRENT_TIMESTAMP"/> |
| 85 | </property> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 86 | </class> |
| 87 | </hibernate-mapping> |