Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test
In directory sc8-pr-cvs1:/tmp/cvs-serv25986/test
Modified Files:
FooBarTest.java
Log Message:
continued refactoring of hql package
Index: FooBarTest.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test/FooBarTest.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** FooBarTest.java 23 Feb 2003 01:32:21 -0000 1.25
--- FooBarTest.java 23 Feb 2003 07:22:11 -0000 1.26
***************
*** 907,910 ****
--- 907,915 ----
assertTrue( list.size()==2, "component query" );
s.find("from foo in class Foo where not exists (from bar in class Bar where bar.id = foo.id)");
+
+ s.find("select foo.foo from foo in class Foo where foo = some(select x from x in class Foo where x.long > foo.foo.long)");
+ s.find("from foo in class Foo where foo = some(select x from x in class Foo where x.long > foo.foo.long) and foo.foo.string='baz'");
+ s.find("from foo in class Foo where foo.foo.string='baz' and foo = some(select x from x in class Foo where x.long > foo.foo.long)");
+ s.find("from foo in class Foo where foo = some(select x from x in class Foo where x.long > foo.foo.long)");
s.iterate("select foo.string, foo.date, foo.foo.string, foo.id from foo in class Foo, baz in class Baz where foo in baz.fooArray.elements and foo.string like 'foo'");
|