Re: Update in cascade

From: Francois Eyl (fey..maeur.com)
Date: Fri Aug 01 2008 - 08:05:17 EDT

  • Next message: Aristedes Maniatis: "Re: Update in cascade"

    Not sure that callbacks is enough.

    What I need is, to change the Name (PK) value of my object, and here I
    need to change the Name in every related object. But I need to do this
    on the same SQL transaction.

    Thanks.

    Francois

    Aristedes Maniatis wrote:
    >
    > On 01/08/2008, at 8:12 PM, Francois Eyl wrote:
    >
    >> Is there a way with Cayenne to do an update in cascade with
    >> relationships (something like the delete in cascade already
    >> implemented) ?
    >
    > Not 100% sure what you are wanting to achieve, but will lifecycle
    > callbacks do what you need?
    >
    > http://cayenne.apache.org/doc/lifecycle-callbacks.html
    >
    >
    > Ari Maniatis
    >
    >
    >
    > -------------------------->
    > ish
    > http://www.ish.com.au
    > Level 1, 30 Wilson Street Newtown 2042 Australia
    > phone +61 2 9550 5001 fax +61 2 9550 4001
    > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
    >
    >
    >
    >
    >

    ___________________________________________________

    Ce message a ete verifie par l'antivirus de MDaemon 5 .

    Par precaution, n'ouvrez pas de pieces jointes de correspondants inconnus.
    ___________________________________________________



    This archive was generated by hypermail 2.0.0 : Fri Aug 01 2008 - 08:06:17 EDT