Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Defining HQL in clause parameter on a collection filter

 
craig hollinshead
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to define a collection filter on a set that will allow items in the list to be filtered by a list of valid audience values (integers). In regular HQL I have this working by passing a List<Integer> to the query by converting an array of Integer values:

qy.setParameterList("aud",Arrays.asList(audiences));

But now I'm trying to define a collection filter on a set of items returned in another object, and I can't figure out what data type to define on in filter-param type field. I've tried several variations (java.util.List, java.lang.Integer, List<Integer>, Integer, etc) to no avail. Any suggestions would be greatly appreciated.

Here's the mapping file:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic