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 2019/10/11 08:01:00 UTC
[jira] [Created] (CAY-2629) Permanent ID is not propagated from
parent to child context on commit
Nikita Timofeev created CAY-2629:
------------------------------------
Summary: 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
Fix For: 4.2.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.3.4#803005)