db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Eade <se...@backstagetech.com.au>
Subject Re: doDelete question
Date Thu, 26 Feb 2004 23:21:52 GMT
mohan@physics.gmu.edu 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: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message