Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/test
In directory sc8-pr-cvs1:/tmp/cvs-serv7161/hibernate/test
Modified Files:
FooBarTest.java
Log Message:
more efficient impl of scalars-in-find() ... still hacky, though
Index: FooBarTest.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/FooBarTest.java,v
retrieving revision 1.226
retrieving revision 1.227
diff -C2 -d -r1.226 -r1.227
*** FooBarTest.java 22 Nov 2002 07:03:07 -0000 1.226
--- FooBarTest.java 23 Nov 2002 01:16:21 -0000 1.227
***************
*** 224,227 ****
--- 224,230 ----
s.save(baz);
baz.setDefaults();
+ Set bars = new HashSet();
+ bars.add( new Bar() );
+ baz.setCascadingBars(bars);
//System.out.println( s.print(baz) );
s.flush();
***************
*** 827,830 ****
--- 830,835 ----
assertTrue( ( (Integer) rs.next() ).intValue()==1, "id query count" );
assertTrue( !rs.hasNext() );
+
+ list = s.find( "from foo in class Foo where foo.boolean = ?", new Boolean(true), Hibernate.BOOLEAN );
list = s.find("select foo.long, foo.component.name, foo, foo.foo from foo in class Foo");
|