JPA在圆括号中命名查询内部连接错误'('

时间:2016-01-20 09:06:07

标签: java hibernate jpa

在以下查询中,我在圆括号中收到错误'('任何人都可以帮我解决问题

select t1 from UserCardCertificates t1 
  inner join **(**
    select min(y.userCardCertificatesId) from UserCardCertificates y 
    where y.ucmsCardId in (:selectedcards) group by y.ucmsCardId
  ) t2 
  on t1.userCardCertificatesId=t2.userCardCertificatesId

0 个答案:

没有答案