You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Fay Wang (JIRA)" <ji...@apache.org> on 2010/02/23 10:15:28 UTC

[jira] Created: (OPENJPA-1527) AssociationOverride does not work when applying to the map key of the element collection via orm.xml

AssociationOverride does not work when applying to the map key of the element collection via orm.xml
----------------------------------------------------------------------------------------------------

                 Key: OPENJPA-1527
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1527
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
    Affects Versions: 2.1.0
            Reporter: Fay Wang
            Assignee: Fay Wang
             Fix For: 2.0.0-beta
         Attachments: OPENJPA-1527.patch



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


[jira] Resolved: (OPENJPA-1527) AssociationOverride does not work when applying to the map key of the element collection via orm.xml

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

Fay Wang resolved OPENJPA-1527.
-------------------------------

    Resolution: Fixed

> AssociationOverride does not work when applying to the map key of the element collection via orm.xml
> ----------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1527
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1527
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.1.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0-beta
>
>         Attachments: OPENJPA-1527.patch
>
>


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


[jira] Commented: (OPENJPA-1527) AssociationOverride does not work when applying to the map key of the element collection via orm.xml

Posted by "Fay Wang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837504#action_12837504 ] 

Fay Wang commented on OPENJPA-1527:
-----------------------------------

The cause of the problem is that the key of the map can be embeddable, which can have associationOverride specified in the orm.xml. However, currently openjpa only handles the associationOverride on the element in an element collection, which can be a map or a collection.  

The fix is to loop through the remaining _deferredMappings in the XMLPersistenceMappingParser (which does not have covered by the _embeddables), and process the associationOverride information stored in it.   

> AssociationOverride does not work when applying to the map key of the element collection via orm.xml
> ----------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1527
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1527
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.1.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0-beta
>
>         Attachments: OPENJPA-1527.patch
>
>


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


[jira] Commented: (OPENJPA-1527) AssociationOverride does not work when applying to the map key of the element collection via orm.xml

Posted by "Thomas O Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842260#action_12842260 ] 

Thomas O Rowe commented on OPENJPA-1527:
----------------------------------------

Fix verified on IBM SE6 on Linux AMD64 running JSE, web, and EJB scenarios.

> AssociationOverride does not work when applying to the map key of the element collection via orm.xml
> ----------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1527
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1527
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.1.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0-beta
>
>         Attachments: OPENJPA-1527.patch
>
>


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


[jira] Closed: (OPENJPA-1527) AssociationOverride does not work when applying to the map key of the element collection via orm.xml

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

Fay Wang closed OPENJPA-1527.
-----------------------------


> AssociationOverride does not work when applying to the map key of the element collection via orm.xml
> ----------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1527
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1527
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.1.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0-beta
>
>         Attachments: OPENJPA-1527.patch
>
>


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


[jira] Updated: (OPENJPA-1527) AssociationOverride does not work when applying to the map key of the element collection via orm.xml

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

Fay Wang updated OPENJPA-1527:
------------------------------

    Attachment: OPENJPA-1527.patch

> AssociationOverride does not work when applying to the map key of the element collection via orm.xml
> ----------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1527
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1527
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.1.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0-beta
>
>         Attachments: OPENJPA-1527.patch
>
>


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