Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/test
In directory sc8-pr-cvs1:/tmp/cvs-serv18853/hibernate/test
Modified Files:
FooBarTest.java
Log Message:
better handling of proxies in QueryImpl
Index: FooBarTest.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/FooBarTest.java,v
retrieving revision 1.241
retrieving revision 1.242
diff -C2 -d -r1.241 -r1.242
*** FooBarTest.java 19 Feb 2003 12:43:24 -0000 1.241
--- FooBarTest.java 13 Mar 2003 02:52:20 -0000 1.242
***************
*** 47,50 ****
--- 47,71 ----
}
+ public void testEmptyCollection() throws Exception {
+ Session s = sessions.openSession();
+ Serializable id = s.save( new Baz() );
+ s.flush();
+ s.connection().commit();
+ s.close();
+ s = sessions.openSession();
+ Baz baz = (Baz) s.load(Baz.class, id);
+ Set foos = baz.getFooSet();
+ assertTrue( foos.size()==0 );
+ Foo foo = new Foo();
+ foos.add(foo);
+ s.save(foo);
+ s.flush();
+ s.delete(foo);
+ s.delete(baz);
+ s.flush();
+ s.connection().commit();
+ s.close();
+ }
+
public void testAssociationId() throws Exception {
Session s = sessions.openSession();
|