From: <one...@us...> - 2002-11-10 15:19:52
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/tools/codegen/test In directory usw-pr-cvs1:/tmp/cvs-serv12595/test Modified Files: Test.hbm.xml Test2.hbm.xml Log Message: Max Andersen's patch for one-to-one support in codegenerator Index: Test.hbm.xml =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/tools/codegen/test/Test.hbm.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Test.hbm.xml 14 Sep 2002 07:25:09 -0000 1.2 --- Test.hbm.xml 10 Nov 2002 15:19:49 -0000 1.3 *************** *** 58,60 **** --- 58,66 ---- </subclass> </class> + + <class name="codegen.test.Person"> + <id name="id" type="string"><generator class="assigned"/></id> + <one-to-one name="myUser" class="codegen.test.User"/> + </class> + </hibernate-mapping> Index: Test2.hbm.xml =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/tools/codegen/test/Test2.hbm.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Test2.hbm.xml 9 Oct 2002 03:52:11 -0000 1.1 --- Test2.hbm.xml 10 Nov 2002 15:19:49 -0000 1.2 *************** *** 41,43 **** --- 41,57 ---- </set> </class> + + <!-- dummy classes to make the test complete --> + <!-- also tests support for classes with no properties --> + <class name="ClassB"> + <id name="id" type="int"> + <generator class="uuid.hex"/> + </id> + </class> + + <class name="ClassA"> + <id name="id" type="int"> + <generator class="uuid.hex"/> + </id> + </class> </hibernate-mapping> |