Search code examples
javahibernatehibernate-criteria

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


I want to select Count of the result Of Sub Query e.g. SELECT COUNT(*) from (SELECT * FROM ENTITY Group By );

Is there any way to do this in HQL?


Solution

  • HQL subqueries can occur only in the select or where clauses.

    Hibernate SubQsueries