Re: DeleteObject will not work

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri May 28 2004 - 10:15:05 EDT

  • Next message: Michael Schuldt: "AW: DeleteObject will not work"

    This is strange. Deletion should work as it always did. Are you seeing
    other SQL logs, but not DELETE? Can you see the SQL generated for other
    changes made during the same "commitChanges"? I mean could it be just a
    log thing... I assume it's not, but still wanted to go through all
    steps.

    Another thing to check - could you print the value of
    "theObject.getPersistenceState()" before and after commit changes?

    Andrus

    On May 28, 2004, at 4:48 AM, Michael Schuldt wrote:
    > Hello,
    >
    > I found the same problem in a former Thread but there was no further
    > reply.
    >
    > So here I start a new one:
    >
    > I'm trying to delete an object as I did many times before. But now a
    > new
    > Application (Running in JRun4), a new Database (MSSQL) and Cayenne
    > 1.1M6.
    > Everything works fine. I can create objects, read them, update them...
    >
    > But now I'm trying to delete an object. Quite similar to the many times
    > before I'm using the removeFrom...-method and then "ctxt.deleteObject
    > (theObject)" even followed by a "ctxt.commitChanges()". But in my
    > log-File
    > there is nothing to see about a delete-call. Not even the smallest
    > hint!
    >
    > Any suggestions? On April, 1st Andrus answered nearly the same
    > question. But
    > I couldn't find any closer hints for a solution.
    >
    >
    > Thx in advance
    >
    > Michael
    >
    >



    This archive was generated by hypermail 2.0.0 : Fri May 28 2004 - 10:15:13 EDT