blob: 75be1c71b01ce0ae9e5092fb6539728cf8d64e4c [file] [log] [blame]
Arthur Martella62cd6aa2017-09-08 13:27:46 -04001<?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="ServiceRecipe" table="SERVICE_RECIPE">
25 <meta attribute="class-description">
26 This class describes a Service recipe
27 </meta>
28
29 <id name="id" type="int" column="id">
30 <generator class="native"/>
31 </id>
32
33 <properties name="uk1_service_recipe" unique="true">
34 <property name="serviceModelUUID" type="string" >
35 <column name="SERVICE_MODEL_UUID" not-null="true" length="200" />
36 </property>
37 <property name="action" type="string" >
38 <column name="ACTION" not-null="true" length="40" />
39 </property>
40 </properties>
41
42 <property name="orchestrationUri" type="string" column="ORCHESTRATION_URI" not-null="true" length="256"/>
Jim Hahn20e60c82017-10-12 11:32:34 -040043 <property name="created" type="timestamp" generated="insert" update="false" insert="false" not-null="true">
44 <column name="CREATION_TIMESTAMP" default="CURRENT_TIMESTAMP"/>
45 </property>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040046
47 <property name="action" column="ACTION" type="string" length="20" insert="false" update="false" />
48 <property name="version" column="VERSION_STR" type="string" length="20"/>
49 <property name="description" column="DESCRIPTION" type="string" length="1200"/>
50 <property name="serviceParamXSD" column="SERVICE_PARAM_XSD" type="string" length="2048"/>
51 <property name="recipeTimeout" column="RECIPE_TIMEOUT" type="int"/>
52 <property name="serviceTimeoutInterim" column="SERVICE_TIMEOUT_INTERIM" type="java.lang.Integer"/>
53 </class>
54</hibernate-mapping>