You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Kevin Menard (JIRA)" <de...@cayenne.apache.org> on 2007/12/11 05:05:50 UTC

[JIRA] Created: (CAY-938) Map key not saved by modeler.

Map key not saved by modeler.
-----------------------------

                 Key: CAY-938
                 URL: https://issues.apache.org/cayenne/browse/CAY-938
             Project: Cayenne
          Issue Type: Bug
          Components: CayenneModeler GUI
    Affects Versions: 3.0
            Reporter: Kevin Menard
            Assignee: Andrus Adamchik


When mapping a relationship as type java.util.Map, my key field is never saved in the DataMap.

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


[JIRA] Closed: (CAY-938) Map key not saved by modeler.

Posted by "Kevin Menard (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Menard closed CAY-938.
----------------------------

       Resolution: Won't Fix
    Fix Version/s: 3.0

The reported problem behavior is by design.  I've updated the JavaDocs to make this a little clearer.

> Map key not saved by modeler.
> -----------------------------
>
>                 Key: CAY-938
>                 URL: https://issues.apache.org/cayenne/browse/CAY-938
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Kevin Menard
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
>
>
> When mapping a relationship as type java.util.Map, my key field is never saved in the DataMap.

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


[JIRA] Commented: (CAY-938) Map key not saved by modeler.

Posted by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org>.
    [ https://issues.apache.org/cayenne/browse/CAY-938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12623 ] 

Andrus Adamchik commented on CAY-938:
-------------------------------------

It saves it for me. It DOES NOT save it only when the key selected is the default key (normally a PK), which is the expected behavior.

> Map key not saved by modeler.
> -----------------------------
>
>                 Key: CAY-938
>                 URL: https://issues.apache.org/cayenne/browse/CAY-938
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Kevin Menard
>            Assignee: Andrus Adamchik
>
> When mapping a relationship as type java.util.Map, my key field is never saved in the DataMap.

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


[JIRA] Commented: (CAY-938) Map key not saved by modeler.

Posted by "Kevin Menard (JIRA)" <de...@cayenne.apache.org>.
    [ https://issues.apache.org/cayenne/browse/CAY-938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12624 ] 

Kevin Menard commented on CAY-938:
----------------------------------

Okay, I see now.  Turns out I forgot to refresh my workspace when I changed it to the non-default key.  So, this may be a non-issue.  However, when using the default key, calling ObjRelationship#getMapKey() returns null.  Is that expected behavior as well?  If so, I think I'd like to see that changed.  I'm fine with defaults not being specified in the DataMap, but the runtime model should have all the info.

> Map key not saved by modeler.
> -----------------------------
>
>                 Key: CAY-938
>                 URL: https://issues.apache.org/cayenne/browse/CAY-938
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Kevin Menard
>            Assignee: Andrus Adamchik
>
> When mapping a relationship as type java.util.Map, my key field is never saved in the DataMap.

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