[hibernate-commits] Hibernate SVN: r15249 - core/branches/Branch_3_2/test/org/hibernate/test/filter.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Thu Oct 2 17:14:24 EDT 2008


Author: steve.ebersole at jboss.com
Date: 2008-10-02 17:14:24 -0400 (Thu, 02 Oct 2008)
New Revision: 15249

Modified:
   core/branches/Branch_3_2/test/org/hibernate/test/filter/DynamicFilterTest.java
Log:
HHH-530 : fixed use of auto-boxing in testcase

Modified: core/branches/Branch_3_2/test/org/hibernate/test/filter/DynamicFilterTest.java
===================================================================
--- core/branches/Branch_3_2/test/org/hibernate/test/filter/DynamicFilterTest.java	2008-10-02 20:00:39 UTC (rev 15248)
+++ core/branches/Branch_3_2/test/org/hibernate/test/filter/DynamicFilterTest.java	2008-10-02 21:14:24 UTC (rev 15249)
@@ -255,7 +255,7 @@
 		session.enableFilter("region").setParameter("region", "APAC");
 
 		DetachedCriteria lineItemSubquery = DetachedCriteria.forClass(LineItem.class)
-				.add(Restrictions.ge("quantity", 1L))
+				.add(Restrictions.ge("quantity", new Long(1)))
 				.createCriteria("product")
 				.add(Restrictions.eq("name", "Acme Hair Gel"))
 				.setProjection(Property.forName("id"));
@@ -275,7 +275,7 @@
 				.setProjection(Property.forName("id"));
 
 		lineItemSubquery = DetachedCriteria.forClass(LineItem.class)
-				.add(Restrictions.ge("quantity", 1L))
+				.add(Restrictions.ge("quantity", new Long(1)))
 				.createCriteria("product")
 				.add(Subqueries.propertyIn("id", productSubquery))
 				.setProjection(Property.forName("id"));




More information about the hibernate-commits mailing list