[EMAIL PROTECTED] wrote:

Hi All
I am trying to write an application that deletes a row from a base Table
called Person. the "id" column is the primaryKey for the "Person" table.
There are lots of tables in the db that reference the "id" from the
Person. Can i also delete all the references from the db if i say

doDelete(personObject);

Please let me know.

Check the torque schema DTD - there is an onDelete attribute to foreign-key elements that you could set to cascade. I can't guarantee that this has been implemented or that it works with all databases - you will need to try it out.

Scott

--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to