Criteria.setCascade(true) will delete all records with a primary key
that references the deleted row.  it does not delete every row with a
reference to the deleted row.

This feature is quite likely to have bugs.

john mcnally

On Wed, 2002-05-22 at 19:06, Will Glass-Husain wrote:
> 
> Hi,
> 
> Is there an easy way to implement recursive deletes in Torque?
> 
> In other words, if table A has a foreign key reference to table B, and I delete 
> a record in B, it should first delete all referencing records in A.
> 
> I find myself implementing this for each new database structure.  I keep 
> finding amazing (but mostly undocumented) features embedded in Torque.  Before 
> I implement this again, might the capability already be present?
> 
> Thanks in advance, WILL
> 
> ------------------------------------
> Will Glass-Husain  <[EMAIL PROTECTED]>
> Forio Business Simulations
> office: (415) 440-7500
> mobile: (415) 235-4293
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



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

Reply via email to