Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2629

Permanent ID is not propagated from parent to child context on commit

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 4.3.M1
    • Core Library
    • None

    Description

      Here is a failing test case from this PR:

           @Test
           public void testTwoStageCommit() {
                DataContext parent = createDataContext();
                ObjectContext child = runtime.newContext(parent);
      
                Painting painting = child.newObject(Painting.class);
                painting.setPaintingTitle("222");
      
                child.commitChangesToParent();
                parent.commitChanges();
                assertTrue(!painting.getObjectId().isTemporary());
           }
      

      Attachments

        Activity

          People

            ntimofeev Nikita Timofeev
            ntimofeev Nikita Timofeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: