Author: steve.ebersole(a)jboss.com
Date: 2008-10-08 13:32:21 -0400 (Wed, 08 Oct 2008)
New Revision: 15290
Modified:
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/dynamicentity/tuplizer2/Customer.hbm.xml
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/dynamicentity/tuplizer2/ImprovedTuplizerDynamicEntityTest.java
Log:
HHH-3517 : default Tuplizer impls
Modified:
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/dynamicentity/tuplizer2/Customer.hbm.xml
===================================================================
---
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/dynamicentity/tuplizer2/Customer.hbm.xml 2008-10-08
17:23:01 UTC (rev 15289)
+++
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/dynamicentity/tuplizer2/Customer.hbm.xml 2008-10-08
17:32:21 UTC (rev 15290)
@@ -31,7 +31,6 @@
<hibernate-mapping package="org.hibernate.test.dynamicentity">
<class name="Person" table="t_person"
discriminator-value="person" abstract="false">
- <tuplizer
class="org.hibernate.test.dynamicentity.tuplizer2.MyEntityTuplizer"
entity-mode="pojo"/>
<id name="id">
<generator class="native"/>
</id>
@@ -46,13 +45,11 @@
</set>
<subclass name="Customer" discriminator-value="customer"
abstract="false">
- <tuplizer
class="org.hibernate.test.dynamicentity.tuplizer2.MyEntityTuplizer"
entity-mode="pojo"/>
<many-to-one name="company" cascade="none"
column="comp_id"/>
</subclass>
</class>
<class name="Company" table="t_company"
abstract="false">
- <tuplizer
class="org.hibernate.test.dynamicentity.tuplizer2.MyEntityTuplizer"
entity-mode="pojo"/>
<id name="id">
<generator class="native"/>
</id>
@@ -60,7 +57,6 @@
</class>
<class name="Address" table="t_address"
abstract="false">
- <tuplizer
class="org.hibernate.test.dynamicentity.tuplizer2.MyEntityTuplizer"
entity-mode="pojo"/>
<id name="id">
<generator class="native"/>
</id>
Modified:
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/dynamicentity/tuplizer2/ImprovedTuplizerDynamicEntityTest.java
===================================================================
---
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/dynamicentity/tuplizer2/ImprovedTuplizerDynamicEntityTest.java 2008-10-08
17:23:01 UTC (rev 15289)
+++
core/branches/Branch_3_3/testsuite/src/test/java/org/hibernate/test/dynamicentity/tuplizer2/ImprovedTuplizerDynamicEntityTest.java 2008-10-08
17:32:21 UTC (rev 15290)
@@ -31,6 +31,7 @@
import org.hibernate.test.dynamicentity.Person;
import org.hibernate.Session;
import org.hibernate.Hibernate;
+import org.hibernate.EntityMode;
import org.hibernate.cfg.Configuration;
import org.hibernate.junit.functional.FunctionalTestCase;
import org.hibernate.junit.functional.FunctionalTestClassTestSuite;
@@ -61,6 +62,7 @@
public void configure(Configuration cfg) {
super.configure( cfg );
+ cfg.getEntityTuplizerFactory().registerDefaultTuplizerClass( EntityMode.POJO,
MyEntityTuplizer.class );
}
public static TestSuite suite() {
Show replies by date