ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 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 3.0//EN" |
| 23 | "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
| 24 | <!-- Generated Apr 28, 2016 2:44:06 PM by Hibernate Tools 3.4.0.CR1 --> |
| 25 | <hibernate-mapping package="org.openecomp.mso.db.catalog.beans"> |
| 26 | <class name="VfModule" table="VF_MODULE"> |
| 27 | <id name="id" type="int" column="id"> |
| 28 | <generator class="native"/> |
| 29 | </id> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 30 | <property name="asdcUuid" type="java.lang.String" > |
| 31 | <column name="ASDC_UUID" not-null="false" length="200" default="null"/> |
| 32 | </property> |
| 33 | <property name="volEnvironmentId" type="java.lang.Integer" > |
| 34 | <column name="VOL_ENVIRONMENT_ID" not-null="false" length="11" default="null"/> |
| 35 | </property> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 36 | <properties name="uk_vfmodule" unique="true"> |
| 37 | <property name="type" type="string" > |
| 38 | <column name="TYPE" not-null="true" length="200"/> |
| 39 | </property> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 40 | <property name="version" type="string"> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 41 | <column name="ASDC_SERVICE_MODEL_VERSION" not-null="true" length="20"/> |
| 42 | </property> |
| 43 | </properties> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 44 | <property name="modelCustomizationUuid" type="java.lang.String" > |
| 45 | <column name="MODEL_CUSTOMIZATION_UUID" not-null="false" length="200"/> |
| 46 | </property> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 47 | <property name="modelName" type="string" > |
| 48 | <column name="MODEL_NAME" not-null="true" length="200"/> |
| 49 | </property> |
| 50 | <property name="modelVersion" type="string" > |
| 51 | <column name="MODEL_VERSION" not-null="true" length="20"/> |
| 52 | </property> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 53 | |
| 54 | <property name="created" type="timestamp" generated="insert" update="false" insert="false" > |
| 55 | <column name="CREATION_TIMESTAMP" not-null="true"/> |
| 56 | </property> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 57 | <property name="description" type="java.lang.String" > |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 58 | <column name="DESCRIPTION" not-null="false" length="255" default="null"/> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 59 | </property> |
| 60 | <property name="volTemplateId" type="java.lang.Integer" > |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 61 | <column name="VOL_TEMPLATE_ID" not-null="false" default="null" length="11"/> |
| 62 | </property> |
| 63 | <property name="templateId" type="java.lang.Integer" > |
| 64 | <column name="TEMPLATE_ID" not-null="false" length="11" default="null"/> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 65 | </property> |
| 66 | <property name="vnfResourceId" type="java.lang.Integer" > |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 67 | <column name="VNF_RESOURCE_ID" not-null="true" length="11"/> |
| 68 | </property> |
| 69 | <property name="isBase" type="int"> |
| 70 | <column name="IS_BASE" not-null="true" length="11"/> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 71 | </property> |
| 72 | <property name="environmentId" type="java.lang.Integer" > |
| 73 | <column name="ENVIRONMENT_ID" not-null="false"/> |
| 74 | </property> |
| 75 | <property name="modelInvariantUuid" type="java.lang.String" > |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 76 | <column name="MODEL_INVARIANT_UUID" not-null="false" length="200" default="null"/> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 77 | </property> |
| 78 | |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 79 | <property name="minInstances" type="java.lang.Integer" > |
| 80 | <column name="MIN_INSTANCES" not-null="false" length="11" default="0"/> |
| 81 | </property> |
| 82 | <property name="maxInstances" type="java.lang.Integer" > |
| 83 | <column name="MAX_INSTANCES" not-null="false" length="11" default="null"/> |
| 84 | </property> |
| 85 | <property name="initialCount" type="java.lang.Integer" > |
| 86 | <column name="INITIAL_COUNT" not-null="false" length="11" default="0"/> |
| 87 | </property> |
| 88 | <property name="label" type="java.lang.String" > |
| 89 | <column name="LABEL" not-null="false" length="200" default="null"/> |
| 90 | </property> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 91 | </class> |
| 92 | </hibernate-mapping> |