From: <one...@us...> - 2003-05-07 15:09:09
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test In directory sc8-pr-cvs1:/tmp/cvs-serv18694/hibernate/test Modified Files: FooBarTest.java ParentChildTest.java Log Message: much better fix for problem with normalized mapping and querying associations Index: FooBarTest.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test/FooBarTest.java,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** FooBarTest.java 3 May 2003 09:05:45 -0000 1.62 --- FooBarTest.java 7 May 2003 15:09:06 -0000 1.63 *************** *** 1149,1152 **** --- 1149,1154 ---- s.delete(baz2); s.flush(); + s.connection().commit(); + s.close(); } Index: ParentChildTest.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test/ParentChildTest.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ParentChildTest.java 15 Apr 2003 04:19:17 -0000 1.10 --- ParentChildTest.java 7 May 2003 15:09:06 -0000 1.11 *************** *** 137,140 **** --- 137,144 ---- "1-1 query" ); + assertTrue( + ( (Object[]) s.find("from Parent p join p.child c where p.count=66").get(0) ).length==2, + "1-1 query" + ); s.find("select c, c.parent from c in class net.sf.hibernate.test.Child order by c.parent.count"); s.find("select c, c.parent from c in class net.sf.hibernate.test.Child where c.parent.count=66 order by c.parent.count"); |