HQL: Is it possible to perform an INNER JOIN on a subquery? HQL: Is it possible to perform an INNER JOIN on a subquery? sql sql

HQL: Is it possible to perform an INNER JOIN on a subquery?


http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/queryhql.html#queryhql-subqueries

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

You can rewrite the query so that the subquery is part of the where clause instead. Referencing the l.idItem in the subquery