您可以在CriteriaBuilder上使用countDistinct
criteriaQuery.select(criteriaBuilder.countDistinct(entityRoot))
上一篇 webdriver.FirefoxProfile():是否可以不复制配置文件就使用配置文件?
下一篇 具有多个关联的休眠获取
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号