Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Defining HQL in clause parameter on a collection filter  RSS feed

 
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:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!