[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-2987) HibernateEntityQuery fails when using a Collection as a parameter in an restriction
Pete Muir (JIRA)
jira-events at lists.jboss.org
Tue May 13 05:37:26 EDT 2008
[ http://jira.jboss.com/jira/browse/JBSEAM-2987?page=all ]
Pete Muir updated JBSEAM-2987:
------------------------------
Fix Version/s: 2.1.0.BETA1
> HibernateEntityQuery fails when using a Collection as a parameter in an restriction
> -----------------------------------------------------------------------------------
>
> Key: JBSEAM-2987
> URL: http://jira.jboss.com/jira/browse/JBSEAM-2987
> Project: Seam
> Issue Type: Bug
> Components: Framework
> Affects Versions: 2.1.0.A1, 2.0.2.CR2
> Environment: hibernate/tomcat
> Reporter: Scott Olcott
> Fix For: 2.1.0.BETA1
>
>
> HibernateEntityQuery fails when using a Collection object as a parameter in an restriction.
> The private setParameters method in HibernateEntityQuery does not check to see if the parameter is a Collection before calling query.setParameter(name,value). In plain hibernate it needs to call the query.setParameterList method instead of the setParameter method. When passing a List as a parameter to a restriction a ClassCastException is thrown.
> This is not an issue when using EntityQuery, because in JPA the setParameter method on org.hibernate.ejb.QueryImpl takes care of this for you.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list