[
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: 5.0-M2
(was: 5.0-M1)
> 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: 5.0-M2
>
>
> 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.20.10#820010)