Re: Child context for Web App

From: Razumovsky Andrey (hmai..otmail.ru)
Date: Fri Mar 21 2008 - 06:23:51 EDT

  • Next message: Pierre Gilquin: "Re: Child context for Web App"

    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



    This archive was generated by hypermail 2.0.0 : Fri Mar 21 2008 - 10:51:25 EDT