|
Workaround 2 is invalid JPQL I think. If I remember it right OpenJPA and EclipseLink have problems when you have brackets around the named parameter. All the examples of IN with named parameters that are set with a list of values ommit the brackets, at least the ones I have seen. So for portability reasons I would prefer not adding parentheses.
|