Setting a parameter as a list for an IN expression

前端 未结 9 2501
北荒
北荒 2020-11-30 07:14

Whenever I try to set a list as a parameter for use in an IN expression I get an Illegal argument exception. Various posts on the internet seem to indicate that this is poss

9条回答
  •  Happy的楠姐
    2020-11-30 08:07

    I found the answer, providing a list as a parameter is not supported in JPA 1.0; however, it is supported in JPA 2.0.

    The default persistence provider for Glassfish v2.1 is Toplink which implements JPA 1.0, to get JPA 2.0 you need EclipseLink which is the default for the Glassfish v3 preview or can be plugged into v2.1.

    - Loren

提交回复
热议问题