You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by "Henning P. Schmiedehausen" <hp...@intermeta.de> on 2002/01/11 11:53:11 UTC
cascade in Criteria
Hi,
who can tell me what the intention of the "cascade" flag
in Criteria is. There seems to be an (undocumented?) attribute to "foreign key":
<!ELEMENT foreign-key (reference+)>
<!ATTLIST foreign-key
foreignTable CDATA #REQUIRED
name CDATA #IMPLIED
onUpdate (cascade|setnull|restrict|none) "none"
onDelete (cascade|setnull|restrict|none) "none"
>
implying this but I didn't find any code inside Torque really setting
this and using this.
The code inside doDelete() looks, hmmmm, 'complicated' in doing the
real cascade. Who added the cascade stuff? Does anyone really use
this?
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH hps@intermeta.de
Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de
D-91054 Buckenhof Fax.: 09131 / 50654-20
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: cascade in Criteria
Posted by John McNally <jm...@collab.net>.
If there is code in BasePeer that is doing cascading deletes it was
written by me about 3 years ago and I have never used it and tested it
once on a simple case. I thought I had removed any code related to this
and you are free to do so, or fix it up.
I believe the cascade flag in the schema is only applied to some db's
sql schema, it does not affect the object model.
john mcnally
"Henning P. Schmiedehausen" wrote:
>
> Hi,
>
> who can tell me what the intention of the "cascade" flag
> in Criteria is. There seems to be an (undocumented?) attribute to "foreign key":
>
> <!ELEMENT foreign-key (reference+)>
> <!ATTLIST foreign-key
> foreignTable CDATA #REQUIRED
> name CDATA #IMPLIED
> onUpdate (cascade|setnull|restrict|none) "none"
> onDelete (cascade|setnull|restrict|none) "none"
> >
>
> implying this but I didn't find any code inside Torque really setting
> this and using this.
>
> The code inside doDelete() looks, hmmmm, 'complicated' in doing the
> real cascade. Who added the cascade stuff? Does anyone really use
> this?
>
> Regards
> Henning
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer
> INTERMETA - Gesellschaft fuer Mehrwertdienste mbH hps@intermeta.de
>
> Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de
> D-91054 Buckenhof Fax.: 09131 / 50654-20
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>