/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. <!DOCTYPE hibernate-mapping PUBLIC
  18. "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
  19. "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
  20. <hibernate-mapping package="com.hazelcast.hibernate.entity">
  21. <class name="DummyEntity" table="dummy_entities">
  22. <!-- <cache usage="read-only"/>-->
  23. <!-- <cache usage="nonstrict-read-write"/>-->
  24. <cache usage="read-write"/>
  25. <id name="id" column="uid" type="long" unsaved-value="null">
  26. <generator class="assigned"/>
  27. </id>
  28. <version column="version" name="version" type="int"/>
  29. <property name="name" type="string" length="100"/>
  30. <property name="date" column="dummy_date" type="date"/>
  31. <property name="value" column="dummy_value" type="double"/>
  32. <set name="properties" lazy="false" cascade="all" inverse="true">
  33. <cache usage="read-write"/>
  34. <key column="parent_uid"/>
  35. <one-to-many class="com.hazelcast.hibernate.entity.DummyProperty"/>
  36. </set>
  37. </class>
  38. </hibernate-mapping>