You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Dzmitry Kazimirchyk (JIRA)" <ji...@apache.org> on 2012/11/09 10:34:13 UTC

[jira] [Created] (CAY-1757) ROP: Faulting entity relationship resets uncommitted modifications made to its reverse relationship

Dzmitry Kazimirchyk created CAY-1757:
----------------------------------------

             Summary: ROP: Faulting entity relationship resets uncommitted modifications made to its reverse relationship
                 Key: CAY-1757
                 URL: https://issues.apache.org/jira/browse/CAY-1757
             Project: Cayenne
          Issue Type: Bug
    Affects Versions: 3.1B1
            Reporter: Dzmitry Kazimirchyk


Following sequence performed on ROP client side will reset changed patinging1->artist relationship back to old.

Artist oldArtist = painting1.getArtist(); // oldArtist->paintings are not yet faulted
painting1.setArtist(newArtist);
oldArtist.getPaintings(); // faulting paintings from db will reset painting1->artist to oldArtist back again


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (CAY-1757) ROP: Faulting entity relationship resets uncommitted modifications made to its reverse relationship

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1757.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.2M1
                   3.1B2

Just fixed on both 3.1 and 3.2 branches. The problem was that "local" changes in an unfaulted to-many list were merged into the fetched list after reverse relationships update. Now it is done *before*.

Thanks for the precise description of the issue. Was very easy to reproduce and locate the problematic area.
                
> ROP: Faulting entity relationship resets uncommitted modifications made to its reverse relationship
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CAY-1757
>                 URL: https://issues.apache.org/jira/browse/CAY-1757
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 3.1B1
>            Reporter: Dzmitry Kazimirchyk
>             Fix For: 3.1B2, 3.2M1
>
>
> Following sequence performed on ROP client side will reset changed patinging1->artist relationship back to old.
> Artist oldArtist = painting1.getArtist(); // oldArtist->paintings are not yet faulted
> painting1.setArtist(newArtist);
> oldArtist.getPaintings(); // faulting paintings from db will reset painting1->artist to oldArtist back again

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira