[GLASSFISH-2484] Allow IN Expression to take in collections as parameters Created: 23/Feb/07  Updated: 06/Mar/12

Status: Open
Project: glassfish
Component/s: entity-persistence
Affects Version/s: 9.0pe
Fix Version/s: not determined

Type: Improvement Priority: Minor
Reporter: chris_delahunt Assignee: tware
Resolution: Unresolved Votes: 12
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 2,484

 Description   

For instance, the query "SELECT i FROM Person i WHERE i.address IN
(:collection)"
using setParameter("collection",list)
where list contains multiple strings Results in
"IllegalArgumentException: You have attempted to set a value of type class
java.util.ArrayList for parameter collection with expected type of class
java.lang.String from query"

Even though the spec states that the input parameter must "be like the same
abstract schema type of the state_field_path_expression in type"
TopLink Essentials could be extended to accept a collection containing valid
types.

This might be related to the validation done for gf GLASSFISH-136



 Comments   
Comment by Tom Mueller [ 06/Mar/12 ]

Bulk change to set fix version to "not determined" where the issue is open but the value is for a released version.

Generated at Mon May 25 01:27:06 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.