This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.

craig hollinshead

Greenhorn
+ Follow
since Feb 18, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by craig hollinshead

Using the ASCII escape codes (> for greater than, < for less than) will fix the XML incompatibility with the greater/less than signs in the filter:

<filter name="limitCategoryTalksByDaterange" condition="talkstart &#62;= :tstart and talkstart &#60;= :tend" />
How can greater than or less than symbols be added to the condition on a Hibernate filter specified in the hbm.xml file?

I am trying to add a filter to limit the collection to a specific date range:

<filter name="limitTalksByDateRange" condition="talkstart >= :tstart and talkstart <= :tend" />

Unfortunately this breaks the XML parsing. I've tried backslash-escaping, "ge" and "le" and even "between :tstart and "tend" which is mentioned in the Hibernate documentation. None has worked.
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: