This content has been marked as final. Show 2 replies
EclipseLink's Expression criteria API allows the use of lists as arguments. So you should be able to define this query using the native Expression or DatabaseQuery API.
Otherwise you will need to dynamically generate your JPQL as you listed.
Also see bug,
James : http://www.eclipselink.org