Re: Counting distinct related objects using EJBQL

2015-11-09 Thread Hugi Thordarson
Thanks Andrus—the workaround works fine :) Cheers, - hugi > On 9. nóv. 2015, at 11:25, Andrus Adamchik wrote: > > It's a bug in Cayenne. I just opened a Jira: > https://issues.apache.org/jira/browse/CAY-2037 . While we are working on > fixing it, there's a woraround described in Jira - if p

Re: Counting distinct related objects using EJBQL

2015-11-09 Thread Andrus Adamchik
It's a bug in Cayenne. I just opened a Jira: https://issues.apache.org/jira/browse/CAY-2037 . While we are working on fixing it, there's a woraround described in Jira - if possible use a unique attribute of the target object inside COUNT. E.g. a.shop.name (if no such attribute exists, map ID as