Re: Deleting Sub objects

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Feb 10 2006 - 12:57:11 EST

  • Next message: Andrus Adamchik: "Stable 1.1.4 maintenance release"

    It doesn't matter from Cayenne perspective. But DON'T DO IT the other
    way around ("cascade" is set in DB but not in Cayenne), or you'll end
    up with inconsistent object graph.

    Andrus

    On Feb 10, 2006, at 12:53 PM, Bruce Alspaugh wrote:

    > Is it a good idea to also set a corresponding cascading delete rule
    > in the DB, if the database supports it?
    >
    > On 2/8/06 Mike Kienenberger <mkienen..mail.com> wrote:
    >> I believe you can set your delete rule to "cascade" and it'll do what
    >> you're asking.
    >>
    >> http://www.objectstyle.org/cayenne/modelerguide/modeling-object-
    >> layer/delete-rules.html
    >>
    >> On 2/8/06, Dhruti Ramani <dhrutiraman..ahoo.com> wrote:
    >> > Hi,
    >> >
    >> > I have two objects DoList and DoListOption. And 1 to M relation
    >> between
    >> > them. DoList object has many DoListOptions. If I remove
    >> particular > DoList,
    >> > is there a way to remove associated DoListItems automatically?
    >> Is there > any
    >> > option to set in modeler for that? What is best way to do this?
    >> >
    >> > Thanks,
    >> > Denna
    >
    >



    This archive was generated by hypermail 2.0.0 : Fri Feb 10 2006 - 12:57:13 EST