cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dzmitry Kazimirchyk <dkazimirc...@gmail.com>
Subject Re: Regarding CAY-1714
Date Mon, 16 Jul 2012 11:28:36 GMT
What about next level of nesting...

ObjectContext nestedChild = runtime.getContext((DataChannel) 
clientContextChild);

This approach doesn't seem handy or obvious. Is there a better way?

Dima


On 07/16/2012 02:11 PM, Andrus Adamchik wrote:
> The API was refactored, but the nested contexts feature is of course still present. Right
now you'd create a client nested context using ClientRuntime:
>
> ClientRuntime runtime = ..
> ObjectContext clientContextChild = runtime.getContext(clientContext);
>
> Andrus
>
> On Jul 16, 2012, at 1:00 PM, Eshan Sudharaka wrote:
>
>> Hi,
>> I was trying to reproduce the issue CAY-1714 and it seems that following
>> operation is now invalid. (since CayenneContext has mo such method
>> declaration)
>>
>> ObjectContext clientContext = this.clientContext.createChildContext();
>>
>> So is this bug is fixed  now ?
>>
>> -- 
>> *~Thanks & Regards~*
>> ***
>> *
>> Eshan



Mime
View raw message