Author: max.andersen(a)jboss.com
Date: 2009-02-26 06:48:50 -0500 (Thu, 26 Feb 2009)
New Revision: 16043
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/Cfg2HbmTool.java
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/hbm2hbmxml/Cfg2HbmAllTests.java
Log:
JBIDE-3712 various fixes to make hbm.xml more complete
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/Cfg2HbmTool.java
===================================================================
---
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/Cfg2HbmTool.java 2009-02-26
10:52:09 UTC (rev 16042)
+++
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/Cfg2HbmTool.java 2009-02-26
11:48:50 UTC (rev 16043)
@@ -371,7 +371,7 @@
public String getProxyInterfaceName(PersistentClass pc) {
if (pc.hasPojoRepresentation() ) {
- return pc.getClassName();
+ return pc.getProxyInterfaceName();
}
else {
throw new ExporterException(pc + " does not have a pojo rep.");
Modified:
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/hbm2hbmxml/Cfg2HbmAllTests.java
===================================================================
---
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/hbm2hbmxml/Cfg2HbmAllTests.java 2009-02-26
10:52:09 UTC (rev 16042)
+++
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/hbm2hbmxml/Cfg2HbmAllTests.java 2009-02-26
11:48:50 UTC (rev 16043)
@@ -1,21 +1,23 @@
package org.hibernate.tool.hbm2x.hbm2hbmxml;
-
import junit.framework.Test;
import junit.framework.TestSuite;
public class Cfg2HbmAllTests {
public static Test suite() {
- TestSuite suite = new TestSuite( "Test for org.hibernate.tool.cfg2hbm" );
+ TestSuite suite = new TestSuite("Test for org.hibernate.tool.cfg2hbm");
//$JUnit-BEGIN$
- suite.addTest( ManyToManyTest.suite() );
- suite.addTest( Hbm2HbmXmlTest.suite() );
- suite.addTest( InheritanceTest.suite() );
- suite.addTest( SetElementTest.suite() );
- suite.addTest( IdBagTest.suite() );
- suite.addTest( ListArrayTest.suite() );
- suite.addTest( MapAndAnyTest.suite() );
+ suite.addTest(ListArrayTest.suite());
+ suite.addTest(CompositeElementTest.suite());
+ suite.addTest(MapAndAnyTest.suite());
+ suite.addTest(DynamicComponentTest.suite());
+ suite.addTest(IdBagTest.suite());
+ suite.addTest(Hbm2HbmXmlTest.suite());
+ suite.addTest(ManyToManyTest.suite());
+ suite.addTest(OneToOneTest.suite());
+ suite.addTest(InheritanceTest.suite());
+ suite.addTest(SetElementTest.suite());
//$JUnit-END$
return suite;
}
Show replies by date