在 Hibernate 查询语言中,有什么方法可以从内部查询的结果中 select 吗?

In Hibernate Query Language is there any way to select from the result of Inner Query?

我想select子查询的结果计数 例如 SELECT COUNT(*) 来自 (SELECT * FROM ENTITY Group By );

有没有办法在 HQL 中做到这一点?

HQL 子查询只能出现在 select 或 where 子句中。

Hibernate SubQsueries