标签: hql jpql
嗨,我是新的JPA和Hibernate概念。任何人都可以帮我写我所请求查询的HQL或JPQL。
例如:
select count(*) from (select count(u.email) from USER u where u.id='123' group by u.email having count(u.email) > 1);