blob: a680768104fbb97bc2d02b909959ad01a4499462 [file] [log] [blame]
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. The ASF licenses this file to You
under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="org.apache.jackrabbit.core.state.orm.hibernate.HibernateNodeState" table="JCR_NODE">
<id name="uuid" type="string">
<column name="UUID" sql-type="varchar(36)" not-null="true"/>
<generator class="assigned" />
</id>
<property name="parentUUID" type="string">
<column name="PARENT_UUID" not-null="false"/>
</property>
<property name="nodeTypeName" type="string">
<column name="NODE_TYPE" not-null="false"/>
</property>
<property name="definitionId" type="string">
<column name="DEFINITION_ID" not-null="false"/>
</property>
<list name="listChildNodeEntries" table="JCR_CHILD_NODE">
<key column="PARENT_UUID"/>
<index column="CHILDREN_INDEX" />
<composite-element class="org.apache.jackrabbit.core.state.orm.ORMChildNodeEntry">
<property name="uuid" type="string" column="UUID"/>
<property name="name" type="string" column="NAME"/>
<property name="sameNameIndex" type="integer" column="SAMENAME_INDEX"/>
</composite-element>
</list>
<set name="setPropertyEntries" table="JCR_NODE_PROPERTY">
<key column="PARENT_UUID"/>
<composite-element class="org.apache.jackrabbit.core.state.orm.ORMPropertyEntry">
<property name="name" type="string" column="NAME"/>
</composite-element>
</set>
<set name="setMixinTypeNames" table="JCR_NODE_MIXIN_TYPE">
<key column="NODE_UUID"/>
<composite-element class="org.apache.jackrabbit.core.state.orm.ORMNodeMixinType">
<property name="mixinTypeName" type="string" column="MIXIN_TYPE"/>
</composite-element>
</set>
<set name="setParentUUIDs" table="JCR_NODE_PARENT">
<key column="NODE_UUID"/>
<composite-element class="org.apache.jackrabbit.core.state.orm.ORMNodeParent">
<property name="parentUUID" type="string" column="PARENT_UUID"/>
</composite-element>
</set>
</class>
<class name="org.apache.jackrabbit.core.state.orm.ORMPropertyState" table="JCR_PROPERTY">
<id name="itemId" type="string">
<column name="ITEM_ID" sql-type="varchar" not-null="true"/>
<generator class="assigned" />
</id>
<property name="name" type="string">
<column name="NAME" not-null="false"/>
</property>
<property name="parentUUID" type="string">
<column name="PARENT_UUID" not-null="false"/>
</property>
<property name="values" type="string">
<column name="VALUE" not-null="false"/>
</property>
<property name="type" type="integer" >
<column name="PROP_TYPE" not-null="false"/>
</property>
<property name="definitionId" type="string">
<column name="DEFINITION_ID" not-null="false"/>
</property>
<property name="multiValued" type="yes_no">
<column name="MULTI_VALUED" sql-type="char(1)" not-null="false" />
</property>
</class>
<class name="org.apache.jackrabbit.core.state.orm.ORMNodeReference" table="JCR_NODE_REF">
<composite-id>
<key-property name="targetId" type="string" column="TARGET_UUID"/>
<key-property name="propertyParentUUID" type="string" column="PROP_UUID"/>
<key-property name="propertyName" type="string" column="PROP_NAME"/>
</composite-id>
</class>
<class name="org.apache.jackrabbit.core.state.orm.ORMBlobValue" table="JCR_BLOB">
<id name="dbId" type="integer" unsaved-value="null">
<column name="BLOB_ID" not-null="true"/>
<generator class="native" />
</id>
<property name="parentUUID" type="string">
<column name="PARENT_UUID" not-null="false"/>
</property>
<property name="propertyName" type="string">
<column name="PROP_NAME" not-null="false"/>
</property>
<property name="index" type="integer">
<column name="VALUE_INDEX" not-null="false"/>
</property>
<property name="size" type="long">
<column name="BLOB_SIZE" not-null="false"/>
</property>
<property name="blobValue" type="binary">
<column name="BLOB_VALUE" not-null="false"/>
</property>
</class>
</hibernate-mapping>