Hugi Thordarson created CAY-2031:
------------------------------------

             Summary: Fetching distinct related objects in EJBQL throws an 
exception
                 Key: CAY-2031
                 URL: https://issues.apache.org/jira/browse/CAY-2031
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 4.0.M2
         Environment: Java 1.8.0_45 running on OS X
            Reporter: Hugi Thordarson


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).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to