Cannot use a subquery in the FROM clause in JPQL

Cannot use a subquery in the FROM clause in JPQL

I was doing a subquery in JPQL with a FROM clause without using a nativeQuery, but for some reason I got an error.

It seems that JPQL does not allow subqueries with FROM clause.

It seems that subqueries are possible in the WHERE and HAVING clauses.

The only solution seems to be to use nativeQuery.

Reference Site

Reference Site

コメント

Discover more from 株式会社CONFRAGE ITソリューション事業部

Subscribe now to keep reading and get access to the full archive.

Continue reading

Copied title and URL