Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6ECA617985 for ; Wed, 23 Sep 2015 07:41:04 +0000 (UTC) Received: (qmail 1115 invoked by uid 500); 23 Sep 2015 07:41:04 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 1090 invoked by uid 500); 23 Sep 2015 07:41:04 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 1080 invoked by uid 99); 23 Sep 2015 07:41:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2015 07:41:04 +0000 Date: Wed, 23 Sep 2015 07:41:04 +0000 (UTC) From: "Hugi Thordarson (JIRA)" To: commits@cayenne.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAY-2031) Fetching distinct related objects in EJBQL throws an exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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=E2=80=9D 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 r= elated object). -- This message was sent by Atlassian JIRA (v6.3.4#6332)