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)