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

From: Andrey Razumovsky (JIRA) ("Andrey)
Date: Thu Oct 23 2008 - 09:44:11 EDT

  • Next message: Andrus Adamchik: "Re: [jira] Created: (CAY-1129) ROP: CayenneContext does not unregister deleted nodes"

    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:45:14 EDT