Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 69031 invoked from network); 19 Apr 2004 15:39:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Apr 2004 15:39:45 -0000 Received: (qmail 9562 invoked by uid 500); 19 Apr 2004 15:39:35 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 9548 invoked by uid 500); 19 Apr 2004 15:39:35 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 9534 invoked from network); 19 Apr 2004 15:39:35 -0000 Received: from unknown (HELO shotoku.intuit.com) (206.154.105.162) by daedalus.apache.org with SMTP; 19 Apr 2004 15:39:35 -0000 Received: from mxp01.inf.intuit.com (mxp01.inf.intuit.com [10.99.1.201]) by shotoku.intuit.com (Postfix) with ESMTP id E068E3493C for ; Mon, 19 Apr 2004 08:38:05 -0700 (PDT) Received: from mxp01.sd.intuit.com (mxp01-corp.inf.intuit.com [10.100.104.2]) by mxp01.inf.intuit.com (Postfix) with ESMTP id 78A121C001B for ; Mon, 19 Apr 2004 08:39:38 -0700 (PDT) Received: from sdmms1.sd.intuit.com (sdmms1.sd.intuit.com [172.17.128.95]) by mxp01.sd.intuit.com (Postfix) with ESMTP id 6889D10B4180 for ; Mon, 19 Apr 2004 08:39:38 -0700 (PDT) Received: from 172.17.135.122 by sdmms1.sd.intuit.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v5.5.3)); Mon, 19 Apr 2004 08:39:34 -0700 Received: by sdgexbh02.sd.intuit.com with Internet Mail Service ( 5.5.2657.72) id ; Mon, 19 Apr 2004 08:39:35 -0700 Message-ID: <4C68F423EA9864408960F32A8820E93C0CDC7D@rnoex02.reno.intuit.com> From: "Whitaker, Andy" To: "'Apache Torque Users List'" Subject: RE: one-many object mappings Date: Mon, 19 Apr 2004 08:39:33 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) X-WSS-ID: 6C9D2D3C276871-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi -- Here's how I did it... List records = XXXPeer.executeQuery("select * from table where yyy); List objects = XXXPeer.populateObjects(records); Now the objects list has your data objects. If this isn't what you wanted, sorry. Andy -----Original Message----- From: Rob Gordon [mailto:rgordon@mwt.net] Sent: Monday, April 19, 2004 6:56 AM To: Apache Torque Users List Subject: one-many object mappings Hi-- Anyone have any experience with one-many mappings in schema? Is it possible? Basically, I want something like getBasedOnForeignKey to return a List, not a single object. Rob --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org