Re: [jira] Created: (CAY-1129) ROP: CayenneContext does not unregister deleted nodes

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Oct 23 2008 - 09:55:42 EDT

  • Next message: Andrus Adamchik: "Re: M5?"

    Ugh, that's evil. Good catch.

    Andrus

    On Oct 23, 2008, at 9:44 AM, Andrey Razumovsky (JIRA) wrote:

    > ROP: CayenneContext does not unregister deleted nodes
    > -----------------------------------------------------
    >
    > Key: CAY-1129
    > URL: https://issues.apache.org/cayenne/browse/CAY-1129
    > Project: Cayenne
    > Issue Type: Bug
    > Components: Cayenne Core Library
    > Affects Versions: 3.0
    > Reporter: Andrey Razumovsky
    > Assignee: Andrey Razumovsky
    >
    >
    > This test fail:
    >
    > public class CayenneContextDeletionTest extends RemoteCayenneCase {
    > public void test() {
    > ClientMtTable1 obj = context.newObject(ClientMtTable1.class);
    > context.commitChanges();
    >
    > context.deleteObject(obj);
    >
    > context.commitChanges();
    >
    > //now check that the object is unregistered
    >
    > assertNull(context.getGraphManager().getNode(obj.getObjectId()));
    > }
    > }
    >
    > BTW same thing with DataContext works
    >
    > --
    > This message is automatically generated by JIRA.
    > -
    > You can reply to this email to add a comment to the issue online.
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Oct 23 2008 - 09:56:15 EDT