LocalEntityProvider bug?

This method from LocalEntityProvider, it never checks to see if the value is a collection and therfore a setParameterList should be used, this prevents creating filters such IN statmenet filters where the parameter is a list, How can I work around this.


	private void setQueryParameters(Query query, Filter filter) {
		// TODO Add test that detects if any specific filter type is missing!
		if (filter instanceof ValueFilter) {
			ValueFilter vf = (ValueFilter) filter;
			query.setParameter(vf.getQLParameterName(), vf.getValue());
		} else if (filter instanceof IntervalFilter) {
			IntervalFilter intf = (IntervalFilter) filter;
			query.setParameter(intf.getEndingPointQLParameterName(), intf.getEndingPoint());
			query.setParameter(intf.getStartingPointQLParameterName(), intf.getStartingPoint());
		} else if (filter instanceof CompositeFilter) {
			for (Filter f : ((CompositeFilter) filter).getFilters()) {
				setQueryParameters(query, f);
			}
		}
	}

Hi,

Do you have a test case for this? We could then look if this is easy to fix for the next JPAContainer version.

cheers,
matti