Re: how_to_delete_raw_from_table

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jul 29 2003 - 09:33:25 EDT

  • Next message: Jean-Paul Le Fèvre: "How to suppress relations ?"

    Hi Sabiha,

    Well, DataContext.deleteObject() is the most common and recommended way to
    delete an object (and an underlying row in the database). Make sure to
    call "DataContext.commitChanges()" afterwards.

    Andrus

    >
    > Hello,
    >
    >
    >
    > I have just begun to learn about Cayenne. I want to remove one raw from
    > table, but I don't know how to do it.
    >
    > I tried with myContext.deleteObject(), but it's not what I wanted to
    > do.
    >
    >
    >
    > Thanks ,
    >
    >
    >
    > Sabiha
    >



    This archive was generated by hypermail 2.0.0 : Tue Jul 29 2003 - 09:33:25 EDT