但是,当我编写一个标准时,c.addOrder(Order.asc("mother.kind.valueorg.hibernate.QueryException: could not resolve property: kind.value of: my.sample.data.entities.Cat
如果我想使用条件和顺序,我应该如何表达我的“Order by"?
我在使用JPA标准API构建查询时遇到了问题。}
public class Comment { @ManyToOne Post post;}SELECT p ORDER BY SIZE(p.comments) DESC
但SIZE(...)函数不能用于JPQL中的排序。因此,我发现了JPA Criteria</e