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]

Reply via email to