cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: How to create a new datacontext based on a datacontext
Date Thu, 10 Feb 2011 14:57:33 GMT
Content is created by a "runtime" object (normally a ServerRuntime) :

   ObjectContext context = cayenneRuntime.getContext();

See an example in tutorial's "Main" class.

Andrus


On Feb 10, 2011, at 3:12 AM, Øyvind Harboe wrote:
> In my app I'm creating a new datacontext based on a
> existing datacontext, but the method I used to do this
> is now deprecated and I don't know what to replace
> it with:
> 
> getDataContext().getParentDataDomain().createDataContext();
> 
> ?
> 
> -- 
> Øyvind Harboe
> 
> Can Zylin Consulting help on your project?
> 
> US toll free 1-866-980-3434 / International +47 51 87 40 27
> 
> http://www.zylin.com/zy1000.html
> ARM7 ARM9 ARM11 XScale Cortex
> JTAG debugger and flash programmer
> 


Mime
View raw message