[hibernate-commits] Hibernate SVN: r18507 - core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Jan 11 15:27:12 EST 2010


Author: hardy.ferentschik
Date: 2010-01-11 15:27:12 -0500 (Mon, 11 Jan 2010)
New Revision: 18507

Added:
   core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Crew.xml
   core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/RentalCar.xml
   core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist.xml
   core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist2.xml
   core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist3.xml
   core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist4.xml
Log:
HHH-4691 - xml test files for access configuration via xml

Added: core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Crew.xml
===================================================================
--- core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Crew.xml	                        (rev 0)
+++ core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Crew.xml	2010-01-11 20:27:12 UTC (rev 18507)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm file:/Users/hardy/work/hibernate/core/trunk/annotations/src/main/resources/org/hibernate/ejb/orm_2_0.xsd"
+                 version="2.0">
+    <description>Mapping for Crew entity</description>
+    <package>org.hibernate.test.annotations.access.xml</package>
+    <mapped-superclass class="Crew" metadata-complete="false" access="FIELD">
+        <attributes>
+            <id name="id">
+                <generated-value/>
+            </id>
+        </attributes>
+    </mapped-superclass>
+</entity-mappings>

Added: core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/RentalCar.xml
===================================================================
--- core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/RentalCar.xml	                        (rev 0)
+++ core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/RentalCar.xml	2010-01-11 20:27:12 UTC (rev 18507)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm file:/Users/hardy/work/hibernate/core/trunk/annotations/src/main/resources/org/hibernate/ejb/orm_2_0.xsd"
+                 version="2.0">
+    <package>org.hibernate.test.annotations.access.xml</package>
+    <entity class="RentalCar" metadata-complete="false">
+        <attributes>
+            <one-to-one name="driver" target-entity="Driver" access="PROPERTY"/>
+        </attributes>
+    </entity>
+</entity-mappings>

Added: core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist.xml
===================================================================
--- core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist.xml	                        (rev 0)
+++ core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist.xml	2010-01-11 20:27:12 UTC (rev 18507)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm file:/Users/hardy/work/hibernate/core/trunk/annotations/src/main/resources/org/hibernate/ejb/orm_2_0.xsd" version="2.0">
+    <description>Mapping for Tourist entity</description>
+    <package>org.hibernate.test.annotations.access.xml</package>
+    <entity class="Tourist" cacheable="false" metadata-complete="false">
+        <attributes>
+            <basic name="name"  access="PROPERTY"/>
+            <basic name="destination" access="PROPERTY"/>
+        </attributes>
+    </entity>      
+</entity-mappings>

Added: core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist2.xml
===================================================================
--- core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist2.xml	                        (rev 0)
+++ core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist2.xml	2010-01-11 20:27:12 UTC (rev 18507)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm file:/Users/hardy/work/hibernate/core/trunk/annotations/src/main/resources/org/hibernate/ejb/orm_2_0.xsd"
+                 version="2.0">
+    <description>Mapping for Tourist entity</description>
+    <persistence-unit-metadata>
+        <persistence-unit-defaults>
+            <access>PROPERTY</access>
+        </persistence-unit-defaults>
+    </persistence-unit-metadata>
+    <package>org.hibernate.test.annotations.access.xml</package>
+    <entity class="Tourist" cacheable="false" metadata-complete="false">
+        <attributes>
+            <id name="id" access="FIELD"/>
+        </attributes>
+    </entity>
+</entity-mappings>

Added: core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist3.xml
===================================================================
--- core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist3.xml	                        (rev 0)
+++ core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist3.xml	2010-01-11 20:27:12 UTC (rev 18507)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm file:/Users/hardy/work/hibernate/core/trunk/annotations/src/main/resources/org/hibernate/ejb/orm_2_0.xsd"
+                 version="2.0">
+    <description>Mapping for Tourist entity</description>
+    <package>org.hibernate.test.annotations.access.xml</package>
+    <access>PROPERTY</access>
+    <entity class="Tourist" cacheable="false" metadata-complete="false">
+        <attributes>
+            <id name="id" access="FIELD"/>
+        </attributes>
+    </entity>
+</entity-mappings>

Added: core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist4.xml
===================================================================
--- core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist4.xml	                        (rev 0)
+++ core/trunk/annotations/src/test/resources/org/hibernate/test/annotations/access/xml/Tourist4.xml	2010-01-11 20:27:12 UTC (rev 18507)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
+                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm file:/Users/hardy/work/hibernate/core/trunk/annotations/src/main/resources/org/hibernate/ejb/orm_2_0.xsd"
+                 version="2.0">
+    <description>Mapping for Tourist entity</description>
+    <package>org.hibernate.test.annotations.access.xml</package>
+    <entity class="Tourist" cacheable="false" metadata-complete="false" access="PROPERTY">
+        <attributes>
+            <id name="id" access="FIELD"/>
+        </attributes>
+    </entity>
+</entity-mappings>



More information about the hibernate-commits mailing list