cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <>
Subject [jira] Commented: (CAY-1194) problems with relationships when using nested contexts and ROP
Date Tue, 17 Mar 2009 19:21:18 GMT


Andrey Razumovsky commented on CAY-1194:


Thanks for junit test. 
This is a harsh issue. I can confirm it can also be reproduced on normal nested DataContexts.
The root of the problem is that when child's to-many property is being resolved, it sends
query to parent context - It is intercepted there, because parent object's to-many list is
already resolved. So "objectList" in child's PersistentObjectList is parent's PersistentObjectList.
That's why all changes are applied without commit. We'll likely need to duplicate the list..
Will need some more time to find a proper fix..

> problems with relationships when using nested contexts and ROP
> --------------------------------------------------------------
>                 Key: CAY-1194
>                 URL:
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0M6
>         Environment: ROP
>            Reporter: Marcin Skladaniec
>            Assignee: Andrey Razumovsky
>             Fix For: 3.0M6
> The problem reveals itself in several ways. I'll attach a junit case to show one of the

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message