You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (Created) (JIRA)" <ji...@apache.org> on 2012/03/01 08:38:00 UTC

[jira] [Created] (CAY-1679) A notion of default node

A notion of default node
------------------------

                 Key: CAY-1679
                 URL: https://issues.apache.org/jira/browse/CAY-1679
             Project: Cayenne
          Issue Type: Improvement
    Affects Versions: 3.1M3
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik


Per CAY-943, Cayenne can merge multiple configurations into a single runtime. Now using that in a real system, I ran into a scenario that I have to define DataNode over and over again with the same name across multiple projects. It would be nice to have DataMap-only projects that would link to a "default" node.

Will add a "default node name" property to DataChannelDescriptor (so that DataChannelDescriptorMerger could set that). Since 99% of projects are single node, if "default node name"  is null, that single node will be used as default (the merger probably can take care of that). DataDomain.lookupDataNode would route all unlinked maps to the default node.

Also DataDomain.lookupDataNode should probably throw on NULL.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CAY-1679) A notion of default node

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

Andrus Adamchik closed CAY-1679.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M4
    
> A notion of default node
> ------------------------
>
>                 Key: CAY-1679
>                 URL: https://issues.apache.org/jira/browse/CAY-1679
>             Project: Cayenne
>          Issue Type: Improvement
>    Affects Versions: 3.1M3
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M4
>
>
> Per CAY-943, Cayenne can merge multiple configurations into a single runtime. Now using that in a real system, I ran into a scenario that I have to define DataNode over and over again with the same name across multiple projects. It would be nice to have DataMap-only projects that would link to a "default" node.
> Will add a "default node name" property to DataChannelDescriptor (so that DataChannelDescriptorMerger could set that). Since 99% of projects are single node, if "default node name"  is null, that single node will be used as default (the merger probably can take care of that). DataDomain.lookupDataNode would route all unlinked maps to the default node.
> Also DataDomain.lookupDataNode should probably throw on NULL.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira