Return-Path: Delivered-To: apmail-db-ojb-user-archive@www.apache.org Received: (qmail 16250 invoked from network); 25 Oct 2004 08:03:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Oct 2004 08:03:15 -0000 Received: (qmail 39919 invoked by uid 500); 25 Oct 2004 08:03:08 -0000 Delivered-To: apmail-db-ojb-user-archive@db.apache.org Received: (qmail 39862 invoked by uid 500); 25 Oct 2004 08:03:08 -0000 Mailing-List: contact ojb-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Users List" Reply-To: "OJB Users List" Delivered-To: mailing list ojb-user@db.apache.org Received: (qmail 39849 invoked by uid 99); 25 Oct 2004 08:03:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [195.68.44.135] (HELO mail.si.fr.atosorigin.com) (195.68.44.135) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 25 Oct 2004 01:03:06 -0700 Received: from sentinelle-mess.croissy.eur.slb.com (pivot-sinet-mess [163.187.242.24]) by mail.si.fr.atosorigin.com (8.13.1/8.13.1) with ESMTP id i9P7x4Vb010731 for ; Mon, 25 Oct 2004 09:59:14 +0200 Received: from pivotsinet-mess.montrouge.eur.slb.com ([163.187.242.22]) by sentinelle-mess with InterScan Messaging Security Suite; Mon, 25 Oct 2004 10:07:20 +0200 Received: from rennes-mess.rennes.eur.slb.com (renmes01.rennes.eur.slb.com [163.187.245.226]) by pivotsinet-mess.montrouge.eur.slb.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id V24QG6Y2; Mon, 25 Oct 2004 10:09:03 +0200 Received: by renmes01.rennes.eur.slb.com with Internet Mail Service (5.5.2653.19) id ; Mon, 25 Oct 2004 10:03:35 +0200 Received: from ETOILES2 (ETOILES_2 [199.6.133.54]) by rennes-mess.rennes.eur.slb.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id VSTNYM1Z; Mon, 25 Oct 2004 10:03:33 +0200 From: LE-QUERE Gildas - REN To: OJB Users List Message-ID: <005701c4ba69$7d87a2f0$368506c7@ETOILES2> Subject: collection loading and filtering Date: Mon, 25 Oct 2004 10:06:08 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, I have un object A referencing � collection with B elements. A has an attribute 'name' and a relation 'elements', B has an attribute 'filter'. I want to load elements where name='xxx' and filter='yyy'. I use the PersitenceBroker API, here is my request: criteria = new Criteria(); criteria.addEqualTo("name", 'xxx'); criteria.addEqualTo("elements.filter", 'yyy'); query = QueryFactory.newQuery(A.class, criteria); A a = (A)broker.getObjectByQuery(query); With the relationship auto-retrieve=true all elements are loaded! If auto-retrieve=false the relationship is not loaded. Is there a solution ? Thanks Gildas --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org For additional commands, e-mail: ojb-user-help@db.apache.org