You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (Jira)" <ji...@apache.org> on 2021/02/24 10:07:00 UTC

[jira] [Updated] (CAY-2629) Permanent ID is not propagated from parent to child context on commit

     [ https://issues.apache.org/jira/browse/CAY-2629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nikita Timofeev updated CAY-2629:
---------------------------------
    Fix Version/s:     (was: 4.2.M3)
                   4.2.B1

> Permanent ID is not propagated from parent to child context on commit
> ---------------------------------------------------------------------
>
>                 Key: CAY-2629
>                 URL: https://issues.apache.org/jira/browse/CAY-2629
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.2.B1
>
>
> Here is a failing test case from [this PR|https://github.com/apache/cayenne/pull/385/]:
> {code}
>      @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());
>      }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)