[seam-commits] Seam SVN: r8536 - trunk/src/main/org/jboss/seam/framework.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Jul 30 08:11:21 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-07-30 08:11:21 -0400 (Wed, 30 Jul 2008)
New Revision: 8536

Modified:
   trunk/src/main/org/jboss/seam/framework/HibernateEntityQuery.java
Log:
JBSEAM-2987

Modified: trunk/src/main/org/jboss/seam/framework/HibernateEntityQuery.java
===================================================================
--- trunk/src/main/org/jboss/seam/framework/HibernateEntityQuery.java	2008-07-30 01:32:57 UTC (rev 8535)
+++ trunk/src/main/org/jboss/seam/framework/HibernateEntityQuery.java	2008-07-30 12:11:21 UTC (rev 8536)
@@ -1,5 +1,6 @@
 package org.jboss.seam.framework;
 
+import java.util.Collection;
 import java.util.List;
 
 import org.hibernate.Session;
@@ -167,7 +168,11 @@
          Object parameterValue = parameters.get(i);
          if ( isRestrictionParameterSet(parameterValue) )
          {
-            query.setParameter( QueryParser.getParameterName(start + i), parameterValue );
+            if(parameterValue instanceof Collection){
+               query.setParameterList(QueryParser.getParameterName(start + i), (Collection) parameterValue);
+            }else{
+               query.setParameter( QueryParser.getParameterName(start + i), parameterValue );
+            }
          }
       }
    }




More information about the seam-commits mailing list