|
From: <hib...@li...> - 2006-05-05 01:04:33
|
Author: ste...@jb...
Date: 2006-05-04 21:04:16 -0400 (Thu, 04 May 2006)
New Revision: 9888
Modified:
trunk/Hibernate3/test/org/hibernate/test/legacy/ParentChildTest.java
Log:
fixed failures from "select count(*)" return type changing to LongType
Modified: trunk/Hibernate3/test/org/hibernate/test/legacy/ParentChildTest.java
===================================================================
--- trunk/Hibernate3/test/org/hibernate/test/legacy/ParentChildTest.java 2006-05-05 01:02:49 UTC (rev 9887)
+++ trunk/Hibernate3/test/org/hibernate/test/legacy/ParentChildTest.java 2006-05-05 01:04:16 UTC (rev 9888)
@@ -628,7 +628,7 @@
s = openSession();
t = s.beginTransaction();
- Integer count = (Integer) s.createQuery("select count(*) from ContainerX as c join c.components as ce join ce.simple as s where ce.name='foo'").uniqueResult();
+ Long count = (Long) s.createQuery("select count(*) from ContainerX as c join c.components as ce join ce.simple as s where ce.name='foo'").uniqueResult();
assertTrue( count.intValue()==1 );
List res = s.find("select c, s from ContainerX as c join c.components as ce join ce.simple as s where ce.name='foo'");
assertTrue(res.size()==1);
|