/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
- <?xml version="1.0"?>
- <!--
- ~ Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
- ~
- ~ Licensed 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 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
- <hibernate-mapping package="com.hazelcast.hibernate.entity">
- <class name="DummyEntity" table="dummy_entities">
- <!-- <cache usage="read-only"/>-->
- <!-- <cache usage="nonstrict-read-write"/>-->
- <cache usage="read-write"/>
- <id name="id" column="uid" type="long" unsaved-value="null">
- <generator class="assigned"/>
- </id>
- <version column="version" name="version" type="int"/>
- <property name="name" type="string" length="100"/>
- <property name="date" column="dummy_date" type="date"/>
- <property name="value" column="dummy_value" type="double"/>
- <set name="properties" lazy="false" cascade="all" inverse="true">
- <cache usage="read-write"/>
- <key column="parent_uid"/>
- <one-to-many class="com.hazelcast.hibernate.entity.DummyProperty"/>
- </set>
- </class>
- </hibernate-mapping>