我想执行以下查询:
请告诉我们' @ ElementCollection'适用于JPQL列表
@Query("select p from Permission p where p.userIds in ?1 ")
List<Permission> getPer(List<Long> usrsIds);
我的实体如下: @实体 公共类权限扩展AbstractAuditable {
private static final long serialVersionUID = -4484607117586062823L;
@ElementCollection
private List<Long> userIds;
我将查询调用如下:
monitoringPermissionRepository.getPer(usrsIds);
但是当我执行查询时,我得到以下异常:
org.hsqldb.HsqlException: malformed numeric constant: .
请帮帮我.. 提前谢谢。