commitChanges() not deleting?

From: Gentry, Michael (michael_gentr..anniemae.com)
Date: Mon Dec 06 2004 - 14:29:53 EST

  • Next message: Tore Halset: "Re: commitChanges() not deleting?"

    This is most likely me not understanding Cayenne ...

    If I do:

    anObject.removeFromFoo(objectToBeRemoved);
    anObject.getDataContext().commitChanges();

    Will Cayenne issue a DELETE statement for me? Or do I also need (before
    commitChanges()):

    anObject.getDataContext().deleteObject(objectToBeRemoved);

    If I do need that, do I need both removeFromFoo() and deleteObject()?

    Thanks!

    /dev/mrg



    This archive was generated by hypermail 2.0.0 : Mon Dec 06 2004 - 14:29:57 EST