Re: CASCADE support?

From: Gili (cowwo..bs.darktech.org)
Date: Wed Aug 31 2005 - 13:35:28 EDT

  • Next message: Jeff de Vries: ""Best Practices" for handling changes to database schema?"

            Thank you. I wasn't expecting to find concepts in the Modeler
    documentation that were not discussed in the user-guide. Now I know to
    look there in the future :)

    Thanks,
    Gili

    Gentry, Michael (Contractor) wrote:
    > Gili,
    >
    > If you haven't found it yet, this section talks about the delete rules:
    >
    > http://www.objectstyle.org/cayenne/modelerguide/modeling-object-layer/de
    > lete-rules.html
    >
    > Also, Mike is correct that when you add an object to a relationship,
    > it'll automatically update the other side (at least by default).
    >
    > /dev/mrg
    >
    >
    > -----Original Message-----
    > From: Gili [mailto:cowwo..bs.darktech.org]
    > Sent: Wednesday, August 31, 2005 12:53 PM
    > To: cayenne-use..bjectstyle.org
    > Subject: Re: CASCADE support?
    >
    >
    >
    > Good to hear. Thank you :)
    >
    > Gili
    >
    > Mike Kienenberger wrote:
    >
    >>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/
    >>>
    >>
    >>
    >

    -- 
    http://www.desktopbeautifier.com/
    



    This archive was generated by hypermail 2.0.0 : Wed Aug 31 2005 - 13:35:29 EDT