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
|