Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 1482 invoked from network); 22 Aug 2008 10:07:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2008 10:07:03 -0000 Received: (qmail 29519 invoked by uid 500); 22 Aug 2008 10:07:01 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 29474 invoked by uid 500); 22 Aug 2008 10:07:00 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 29463 invoked by uid 99); 22 Aug 2008 10:07:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Aug 2008 03:06:59 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [147.91.1.120] (HELO afrodita.rcub.bg.ac.yu) (147.91.1.120) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Aug 2008 10:06:02 +0000 Received: from [147.91.4.66] (ognjen-pc.rcub.bg.ac.yu [147.91.4.66]) by afrodita.rcub.bg.ac.yu (Postfix) with ESMTP id 0132F19198F1 for ; Fri, 22 Aug 2008 12:05:53 +0200 (CEST) Message-ID: <48AE8E4A.4000704@etf.bg.ac.yu> Date: Fri, 22 Aug 2008 12:00:42 +0200 From: Ognjen Blagojevic User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: dev@openjpa.apache.org Subject: Re: Selecting multiple objects - bug? References: <48AAB020.5070303@etf.bg.ac.yu> <48AD3BAC.9090606@etf.bg.ac.yu> <1219332719578-740434.post@n2.nabble.com> In-Reply-To: <1219332719578-740434.post@n2.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-RCUB-MailScanner-Information: Please contact the ISP for more information X-RCUB-MailScanner: Found to be clean X-Virus-Checked: Checked by ClamAV on apache.org Pinaki Poddar wrote: > Hi, > The result should return (Magazine, Publisher) pairs. > > Please post > a) the relevant mapping declarations of Magazine and Publisher > b) the SQL generated by OpenJPA > > for further analysis. It was a bug in 1.1.0. Just tested with 1.2.0 and it works fine. Output with 1.1.0 (erratic, returns two Publishers in a row) AB press, AB press, CD press, AB press, EF press, AB press, null, CD press, null, EF press, Results: 5 Output with 1.2.0 (as expected, returns Magazine and Publisher): alpha, AB press, beta, AB press, gamma, AB press, foobar, CD press, barfoo, EF press, Results: 5 So, if there are plans to maintain a 1.1.x branch, tests should be copied over there, too. Regards, Ognjen