Thanks for the tip, I'm working on it .......... I will let you know if it works ...... -----Ursprüngliche Nachricht----- Von: Riley, Cameron [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 9. Januar 2001 17:43 An: 'Turbine' Betreff: RE: How can I fetch the Foreign Key's from a Table over the Peer Clas ses ? Ettema, >How can I fetch the Foreign Key's from a Table over the Peer Classes I believe turning on complex when generating your om classes in Torque exposes the foreign keys and tables from the primary table. Alternatively, you could edit the template files in Torque so it gives you a Vector of foreignkeys. Torque exposes through the Table and ForeignKey classes a tonne of methods to describe foreign keys, so you can script those extra methods into your om classes if you need them. Have a look in /src/java/org/apache/turbine/torque/model/ and /conf/torque/templates/om you can pretty much make torque do what you want. Cameron Riley ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED] ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED]
