cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Razumovsky Andrey <hm...@hotmail.ru>
Subject Re: Child context for Web App
Date Fri, 21 Mar 2008 10:23:51 GMT
Hi Pierre!

When you use nested contexts (http://cayenne.apache.org/doc/nested-datacontexts.html), you
don't need to manually copy objects between contexts, it collapses to just calling one method.
I think that's exactly what you need.

Manually calling setObjectContext (and even worse, deprecated setDataContext), by my experience,
usually results in errors since Cayenne's internal object graph isn't properly updated.

Andrey

Mime
View raw message