blob: 4dc7f968b40e131284ae75c9a57a41ad8a7d48b5 [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001<?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
xg353yb6b7bef2017-04-11 13:30:42 +020011
ChrisC025301d2017-01-31 11:40:03 +010012 http://www.apache.org/licenses/LICENSE-2.0
xg353yb6b7bef2017-04-11 13:30:42 +020013
ChrisC025301d2017-01-31 11:40:03 +010014 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="VnfRecipe" table="VNF_RECIPE">
26 <meta attribute="class-description">
27 This class describes a VNF Recipe
28 </meta>
xg353yb6b7bef2017-04-11 13:30:42 +020029
ChrisC025301d2017-01-31 11:40:03 +010030 <id name="id" type="int" column="id">
31 <generator class="native"/>
32 </id>
33
34 <properties name="uk_vnf_recipe" unique="true">
xg353yb6b7bef2017-04-11 13:30:42 +020035
ChrisC025301d2017-01-31 11:40:03 +010036 <property name="vfModuleId" type="string">
37 <column name="VF_MODULE_ID" not-null="false" length="100" />
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>
xg353yb6b7bef2017-04-11 13:30:42 +020045
ChrisC025301d2017-01-31 11:40:03 +010046 </properties>
xg353yb6b7bef2017-04-11 13:30:42 +020047
ChrisC025301d2017-01-31 11:40:03 +010048 <property name="vnfType" type="string">
49 <column name="VNF_TYPE" not-null="false" length="200" />
50 </property>
xg353yb6b7bef2017-04-11 13:30:42 +020051
ChrisC025301d2017-01-31 11:40:03 +010052 <property name="serviceType" type="string">
xg353yb6b7bef2017-04-11 13:30:42 +020053 <column name="SERVICE_TYPE" not-null="false" length="45" default="null"/>
ChrisC025301d2017-01-31 11:40:03 +010054 </property>
xg353yb6b7bef2017-04-11 13:30:42 +020055
ChrisC025301d2017-01-31 11:40:03 +010056 <property name="description" column="DESCRIPTION" type="string" length="1200"/>
xg353yb6b7bef2017-04-11 13:30:42 +020057
ChrisC025301d2017-01-31 11:40:03 +010058 <property name="orchestrationUri" type="string">
59 <column name="ORCHESTRATION_URI" not-null="true" length="256"/>
60 </property>
xg353yb6b7bef2017-04-11 13:30:42 +020061
ChrisC025301d2017-01-31 11:40:03 +010062 <property name="vnfParamXSD" column="VNF_PARAM_XSD" type="string" length="2048"/>
63 <property name="recipeTimeout" column="RECIPE_TIMEOUT" type="int"/>
Jim Hahn20e60c82017-10-12 11:32:34 -040064 <property name="created" type="timestamp" generated="insert" update="false" insert="false" not-null="true">
65 <column name="CREATION_TIMESTAMP" default="CURRENT_TIMESTAMP"/>
66 </property>
ChrisC025301d2017-01-31 11:40:03 +010067 </class>
68</hibernate-mapping>