I can imagine that a child context won't reattach to stack properly
on deserialization (should probably document this as a known
limitation ... or rather something left to the user to take care of).
Top level DC however should be able to attach to default DataDomain
transparently. Do you have more than one DD ?
Andrus
On May 22, 2006, at 7:33 PM, Mike Kienenberger wrote:
So I switched from a childDataContext to a regular DataContext, and
now I get a different error :-)
Caused by: org.objectstyle.cayenne.CayenneRuntimeException: [v.1.2B2
April 17 2006] Cannot commit changes - channel is not set.
at org.objectstyle.cayenne.access.DataContext.flushToParent
(DataContext.java:1186)
at org.objectstyle.cayenne.access.DataContext.commitChanges
(DataContext.java:1121)
Something tells me that serialization of DataContexts is a bit rough
right now....