AW: DeleteObject will not work

From: Michael Schuldt (m..scensys.de)
Date: Fri May 28 2004 - 10:45:31 EDT

  • Next message: Mike Kienenberger: "Re: Retrieving via auto-generated keys"

    Hi Andrus,

    during the DELETE there are no other logs. Here the results for the
    persistence-state of the object:

    => ps = 3
    user.removeFromHasFavoriten (favorit);
    => ps = 4
    ctxt.deleteObject (favorit);
    => ps = 6
    ctxt.commitChanges (Level.WARN);
    => ps = 6

    Hope this could be a little hint.

    Michael

    > -----Ursprungliche Nachricht-----
    > Von: Andrus Adamchik [mailto:andru..bjectstyle.org]
    > Gesendet: Freitag, 28. Mai 2004 16:15
    > An: cayenne-use..bjectstyle.org
    > Betreff: Re: 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:45:30 EDT