c00149107 | 789ab7c | 2018-03-06 15:46:24 +0800 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | /*- |
| 4 | * ============LICENSE_START======================================================= |
| 5 | * ONAP - SO |
| 6 | * ================================================================================ |
| 7 | * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved. |
| 8 | * ================================================================================ |
| 9 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | * you may not use this file except in compliance with the License. |
| 11 | * You may obtain a copy of the License at |
| 12 | * |
| 13 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | * |
| 15 | * Unless required by applicable law or agreed to in writing, software |
| 16 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | * See the License for the specific language governing permissions and |
| 19 | * limitations under the License. |
| 20 | * ============LICENSE_END========================================================= |
| 21 | */ |
| 22 | --> |
| 23 | <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
| 24 | |
| 25 | <hibernate-mapping package="org.openecomp.mso.db.catalog.beans"> |
| 26 | <class name="ArRecipe" table="AR_RECIPE"> |
| 27 | <meta attribute="class-description"> |
| 28 | This class describes a AR recipe |
| 29 | </meta> |
| 30 | |
| 31 | <id name="id" type="int" column="id"> |
| 32 | <generator class="native"/> |
| 33 | </id> |
| 34 | |
| 35 | <properties name="uk_ar_recipe" unique="true"> |
| 36 | <property name="modelName" type="string" > |
| 37 | <column name="MODEL_NAME" not-null="true" length="20"/> |
| 38 | </property> |
| 39 | <property name="action" type="string" > |
| 40 | <column name="ACTION" not-null="true" length="20"/> |
| 41 | </property> |
| 42 | <property name="version" type="string"> |
| 43 | <column name="VERSION_STR" not-null="true" length="20"/> |
| 44 | </property> |
| 45 | |
| 46 | </properties> |
| 47 | |
| 48 | <property name="serviceType" type="string" length="45"> |
| 49 | <column name="SERVICE_TYPE" not-null="false" length="45"/> |
| 50 | </property> |
| 51 | <property name="description" column="DESCRIPTION" type="string" length="1200"/> |
| 52 | <property name="orchestrationUri" type="string"> |
| 53 | <column name="ORCHESTRATION_URI" not-null="true" length="256"/> |
| 54 | </property> |
| 55 | <property name="arParamXSD" column="AR_PARAM_XSD" type="string" length="2048"/> |
| 56 | <property name="recipeTimeout" column="RECIPE_TIMEOUT" type="int"/> |
| 57 | <property name="created" type="timestamp" generated="insert" update="false" insert="false" not-null="true"> |
| 58 | <column name="CREATION_TIMESTAMP" default="CURRENT_TIMESTAMP"/> |
| 59 | </property> |
| 60 | </class> |
| 61 | |
| 62 | </hibernate-mapping> |