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

        

Reply via email to