|
|
1
4
这是3.5.1中的错误
cr.setProjection(projects.countDistinct(“memberId”)); SQL结果为count(memberId)
调试后。。。。
distinct被注意到但没有被使用。
还有。。。在聚合投影中 只使用getFunctionName()=functionName=“count”!!! 公共类AggregateProjection扩展了SimpleProjection{
|
|
|
2
3
|
|
|
3
1
当做
|
|
|
4
0
当您使用'distinct'时,查询是否给出不同的结果? |
|
|
5
0
也许字段ID被定义为唯一的?尝试使用不同的字段,这不是唯一的。 |
|
|
Gero Mendy · 如何为一个类分配兵变的结果。查询 2 年前 |
|
Hamvy B · 替换不推荐的hibernate方法 2 年前 |
|
Martin Pfeffer · Spring Boot JPA 2 年前 |
|
|
denstran · 休眠未生成正确的id 2 年前 |
|
|
Frank · 忽略/跳过Hibernate架构验证中的特定字段 2 年前 |