PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/hazelcast-hibernate/src/test/resources/com/hazelcast/hibernate/entity/DummyEntity.hbm.xml

https://bitbucket.org/gabral6_gmailcom/hazelcast
XML | 42 lines | 21 code | 4 blank | 17 comment | 0 complexity | 4e9b9ee1e092d0cc50057017706f992d MD5 | raw file
 1<?xml version="1.0"?>
 2<!--
 3  ~ Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
 4  ~
 5  ~ Licensed under the Apache License, Version 2.0 (the "License");
 6  ~ you may not use this file except in compliance with the License.
 7  ~ You may obtain a copy of the License at
 8  ~
 9  ~ http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<!DOCTYPE hibernate-mapping PUBLIC
19        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
20        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
21
22<hibernate-mapping package="com.hazelcast.hibernate.entity">
23    <class name="DummyEntity" table="dummy_entities">
24        <!--		<cache usage="read-only"/>-->
25        <!--		<cache usage="nonstrict-read-write"/>-->
26        <cache usage="read-write"/>
27
28        <id name="id" column="uid" type="long" unsaved-value="null">
29            <generator class="assigned"/>
30        </id>
31        <version column="version" name="version" type="int"/>
32        <property name="name" type="string" length="100"/>
33        <property name="date" column="dummy_date" type="date"/>
34        <property name="value" column="dummy_value" type="double"/>
35
36        <set name="properties" lazy="false" cascade="all" inverse="true">
37            <cache usage="read-write"/>
38            <key column="parent_uid"/>
39            <one-to-many class="com.hazelcast.hibernate.entity.DummyProperty"/>
40        </set>
41    </class>
42</hibernate-mapping>