Hi Tom, hi Jielin,
attached you find my changes to fix issue 1519 "JPQL: create a
ReadAllQuery for simple queries":
https://glassfish.dev.java.net/issues/show_bug.cgi?id=1519
This change allows to map a simple SELECT query to a ReadAllQuery
instance, where other SELECT queries are mapped to a ReportQuery. A
query falls into the ReadAllQuery category, if
- the SELECT clause consists of a single expression
- the SELECT clause expression is an identification variable w/o
projection (which means the query returns entities)
- the identification variable is defined as range variable w/o FETCH
JOINs and is the base of the generated TopLink query instance.
Thanks!
Regards Michael