Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 789C117870 for ; Wed, 1 Apr 2015 12:19:41 +0000 (UTC) Received: (qmail 38836 invoked by uid 500); 1 Apr 2015 12:19:35 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 38809 invoked by uid 500); 1 Apr 2015 12:19:35 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 38790 invoked by uid 99); 1 Apr 2015 12:19:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 12:19:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [162.242.166.79] (HELO us-rs09.objectstyle.com) (162.242.166.79) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 01 Apr 2015 12:19:29 +0000 Received: (qmail 32729 invoked by uid 509); 1 Apr 2015 12:19:08 -0000 Received: from unknown (HELO ?192.168.1.20?) (212.98.191.4) by us-rs09.objectstyle.com with SMTP; 1 Apr 2015 12:19:08 -0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: Traversing relationships in DataRow queries? From: Andrus Adamchik In-Reply-To: Date: Wed, 1 Apr 2015 15:19:07 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <6FBAED80-D5FC-494D-B97B-CD0366E846E6@objectstyle.org> References: <44C6FF6C-5837-4EEC-9497-947A47482F46@karlmenn.is> To: user@cayenne.apache.org X-Mailer: Apple Mail (2.2070.6) X-Virus-Checked: Checked by ClamAV on apache.org > On Apr 1, 2015, at 2:59 PM, Hugi Thordarson wrote: >=20 > While this doesn=E2=80=99t: >=20 > SelectQuery q =3D SelectQuery.dataRowQuery( SMReceipt.class = ); > q.addPrefetch( SMReceipt.SHOP.getName() ); > List list =3D objectContext.select( q ); >=20 > Should I file a bug report? Very surprising. This should generate a "disjoint" prefetch (i.e. a = query #2, fetching Shop objects). And I am certain that we have dozens = of unit tests for it. But yeah, if it is broken, please open a Jira, = including generated SQL if possible. BTW, feel free to use ObjectSelect query, which a "fluent" analog of = SelectQuery in M2. Andrus=