Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 96289 invoked from network); 15 May 2010 09:01:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 May 2010 09:01:34 -0000 Received: (qmail 39536 invoked by uid 500); 15 May 2010 09:01:33 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 39404 invoked by uid 500); 15 May 2010 09:01:32 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 39393 invoked by uid 99); 15 May 2010 09:01:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 May 2010 09:01:31 +0000 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=AWL,FORGED_YAHOO_RCVD,FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 May 2010 09:01:24 +0000 Received: from jim.nabble.com ([192.168.236.80]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ODDF2-0001C7-3B for users@openjpa.apache.org; Sat, 15 May 2010 02:01:04 -0700 Date: Sat, 15 May 2010 02:01:04 -0700 (PDT) From: vld To: users@openjpa.apache.org Message-ID: <1273914064092-5058586.post@n2.nabble.com> In-Reply-To: <02a601caf405$c33b55e0$49b201a0$@com> References: <1273875529751-5057450.post@n2.nabble.com> <02a601caf405$c33b55e0$49b201a0$@com> Subject: RE: Abstract class Fetch Join MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit crispyoz wrote: > > I a have similar "Active" field on all my entities, I use "join fetch" not > "left join fetch" for the same purpose but don't have this issue. > Thank you for your reply. I tried JOIN FETCH (although I can have LegalEntitys without address), but the result is the same. Since I can't put an alias for JOIN FETCH relationship, generated query contains two JOIN statements between LegalEntity and Address, one for Fetch and one for Where. It seems that - SELECT le, a FROM LegalEntity le JOIN le.addresses a WHERE le.id=:id AND a.isActive=true would solve the problem, but inheritance is not properly handled. -- View this message in context: http://openjpa.208410.n2.nabble.com/Abstract-class-Fetch-Join-tp5057450p5058586.html Sent from the OpenJPA Users mailing list archive at Nabble.com.