Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.M2
-
None
-
Java 1.8.0_45 running on OS X
Description
Retrieving a list of distinct related objects in EJBQL using the following syntax fails:
"select distinct receipt.shop from Receipt receipt”
Stack trace:
https://gist.github.com/hugith/c3f48c4576e6a55383b3
Same query works fine without the "distinct" keyword.
Same query works fine if you specify an attribute on "shop" (not just the related object).
Attachments
Issue Links
- relates to
-
CAY-2037 EJBQL: COUNT(DISTINCT .. ) doesn't properly translate paths ending with relationship
- Closed