我正在为JPA标准API子查询相关性而奋斗。从一个复杂的查询中,我用这个简单的例子复制了我的问题:public class Person {
Long id;
Set<Person> relatives;
CriteriaQuery<Long> criteriaQuery = criteriaBuilder.cre
有人能告诉我如何使用criteriaBuilder使用连接到子查询来生成Hibernate查询吗?下面是一个简单的例子:
select idSchool, name from user left join (select idSchool from student where age < 15) as