Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 20068 invoked from network); 3 Dec 2004 22:13:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Dec 2004 22:13:50 -0000 Received: (qmail 45821 invoked by uid 500); 3 Dec 2004 22:13:49 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 45787 invoked by uid 500); 3 Dec 2004 22:13:49 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 45774 invoked by uid 99); 3 Dec 2004 22:13:49 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jbraeuchi@gmx.ch designates 213.165.64.20 as permitted sender) Received: from pop.gmx.de (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 03 Dec 2004 14:13:47 -0800 Received: (qmail 19905 invoked by uid 65534); 3 Dec 2004 22:13:45 -0000 Received: from adsl-62-167-26-77.adslplus.ch (EHLO [192.168.1.10]) (62.167.26.77) by mail.gmx.net (mp016) with SMTP; 03 Dec 2004 23:13:45 +0100 X-Authenticated: #15507884 Message-ID: <41B0E501.6030206@gmx.ch> Date: Fri, 03 Dec 2004 23:13:21 +0100 From: Jakob Braeuchi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.3) Gecko/20040910 X-Accept-Language: de, en MIME-Version: 1.0 To: OJB Developers List Subject: Re: org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher bug References: <2540.1101717767@www1.gmx.net> In-Reply-To: <2540.1101717767@www1.gmx.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi vladimir, this bug is also present on the current ojb 1.1 i'll apply your patch asap. thanks jakob Jakob Braeuchi schrieb: > hi vladimir, > > which version of ojb are you using ? > > jakob > > >>org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher bug >> >>in method >> >> private Criteria buildPrefetchCriteria(Collection ids, >>String[] fkCols, String[] itemFkCols, >> FieldDescriptor[] itemPkFields) >> { >> if (fkCols.length == 1) //bug is here >> { >> return buildPrefetchCriteriaSingleKey(ids, >>fkCols[0], itemFkCols[0], itemPkFields[0]); //only first >>item's foreign key passed >> } >> else >> { >> return buildPrefetchCriteriaMultipleKeys(ids, >>fkCols, itemFkCols, itemPkFields); >> } >> >> } >> >>assumption that if parent table has the only foreign key then >>item table has the only FK too is incorrect. >> >>>element-class-ref="nVerge.commons.User" >>auto-delete="link" auto-retrieve="true" auto-update="link" >>indirection-table="hot_folder_recipients"> >> >> >> >> >> >> >>Quickfix for this is if (fkCols.length == 1 && >>itemFkCols.length == 1) >> >> >>-- >>Best Regards, >>Vladimir Kirichenko >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org >>For additional commands, e-mail: ojb-dev-help@db.apache.org >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org