On 13/01/2009, at 7:03 PM, Andrus Adamchik wrote:
>> Another thing is that the http://cayenne.apache.org/doc/nested-datacontexts.html
>> states that nested contexts are not available in ROP, is that still?
>
> Andrey has been working on the ROP version of nested contexts. I
> think it is (partially?) done.
>
> Andrus
If I can answer on his behalf, Marcin is testing that right now, hence
the questions. I've updated the web site page to reflect that nested
contexts are now available.
>> I think it is a bug, and relating objects should be allowed between
>> parent/child contexts.
>
> Not so. Parent/child relationship determines the path of the select
> and commit operations, but has no effect on the rule that each
> object belongs to just one context, and no relationships between
> them are possible.
That's a little awkward then. If a user is in the middle of creating a
new Artist and decides to create a Painting (in a child context), then
it is troublesome to create the join. We can't move the Artist into
the child context so that it can be joined there to the Painting, so I
assume the only solution is to postpone the join until the child
context is committed back to its parent. But that is awkward since
while in the child editing context, the Painting has no access to the
Artist it should be related to.
Ari
-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001 fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
This archive was generated by hypermail 2.0.0 : Tue Jan 13 2009 - 06:27:10 EST