Re: CASCADE support?

From: Mike Kienenberger (mkienen..mail.com)
Date: Wed Aug 31 2005 - 12:46:15 EDT

  • Next message: Andrus Adamchik: "Re: Unable to generate addTo... and removeFrom... methods"

    For deletes this is possible. Just set the delete rule on your
    ObjRelationship to cascade in the model. It defaults to nullify, I
    believe. (Deny is the other option).

    For adds, I think it's automatic so long as you provide a reverse
    ObjRelationship.

    On 8/31/05, Gili <cowwo..bs.darktech.org> wrote:
    > Hi,
    >
    > In Hibernate you can define cascades such that if you have a
    > parent/child relationship and you add a child into the parent, the
    > child's parent link is updated as well (i.e. bidirectional
    > relationship). As well, if a parent is removed, you can set cascade so
    > all children are automatically removed as well.
    >
    > Can the same thing be done under Cayenne?
    >
    > Gili
    > --
    > http://www.desktopbeautifier.com/
    >



    This archive was generated by hypermail 2.0.0 : Wed Aug 31 2005 - 12:46:17 EDT