Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/test
In directory sc8-pr-cvs1:/tmp/cvs-serv4213/cirrus/hibernate/test
Modified Files:
FooBarTest.java
Log Message:
property of component type may now appear in select clause
Index: FooBarTest.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/FooBarTest.java,v
retrieving revision 1.228
retrieving revision 1.229
diff -C2 -d -r1.228 -r1.229
*** FooBarTest.java 24 Nov 2002 12:53:21 -0000 1.228
--- FooBarTest.java 24 Nov 2002 15:45:50 -0000 1.229
***************
*** 849,853 ****
assertTrue(count!=0);
list = s.find("select avg(foo.float), max(foo.component.name), count(distinct foo.id) from foo in class Foo");
! //s.find("select foo.long, foo.component, foo, foo.foo from foo in class Foo"); //TODO: make this work!
s.save( new Holder("ice T") );
--- 849,874 ----
assertTrue(count!=0);
list = s.find("select avg(foo.float), max(foo.component.name), count(distinct foo.id) from foo in class Foo");
! rs = list.iterator();
! count=0;
! while ( rs.hasNext() ) {
! count++;
! Object[] row = (Object[]) rs.next();
! assertTrue( row[0] instanceof Float );
! assertTrue( row[1] instanceof String );
! assertTrue( row[2] instanceof Integer );
! }
! assertTrue(count!=0);
! list = s.find("select foo.long, foo.component, foo, foo.foo from foo in class Foo"); //TODO: make this work!
! rs = list.iterator();
! count=0;
! while ( rs.hasNext() ) {
! count++;
! Object[] row = (Object[]) rs.next();
! assertTrue( row[0] instanceof Long );
! assertTrue( row[1] instanceof FooComponent );
! assertTrue( row[2] instanceof Foo );
! assertTrue( row[3] instanceof Foo );
! }
! assertTrue(count!=0);
s.save( new Holder("ice T") );
|