We're using JPA and I'm trying to find an example of a NamedQuery that accepts a collection, e.g:
"select * from INVOICE where invoice_type in :types"
so when calling the Query I'd expect to pass in query.setParameter("types", myTypes);
where 'myTypes' is a List<InvoiceType>
this doesnt seem to work as outlined here; can someone tell me how to do this?