select count(*) from (select t.* , count(tt.table1_id) count
from table1 t left join table2 tt on t.id=tt.table1_id group by t.id) b;
把这个换成Hibernate 的 hql
...全文
808打赏收藏
寻找Hibernate 高手 帮帮忙
select count(*) from (select t.* , count(tt.table1_id) count from table1 t left join table2 tt on t.id=tt.table1_id group by t.id) b; 把这个换成Hibernate 的 hql