Cayenne
  1. Cayenne
  2. CAY-171

Multiple Domains Having DataMap with the same name

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1 [LEGACY]
    • Fix Version/s: 1.1 [LEGACY]
    • Component/s: Core Library, Modeler
    • Labels:
      None

      Description

      DataDomain intention is to provide a namespace for entities.

      Still there is one issue where namespace abstraction breaks - if two domains in the same project have DataMaps (or JDBC DataNodes for that matter) that coincidentally have the same name, there is a conflict in saving these maps, as such maps are stored in the same directory under the same filename.

      A solution for the future release is to prepend DataDomain name to the map name (e.g. MyDomain.MyMap.map.xml).

      Current solution maybe to generate the default map name not just as "UntitledDataMap", but "MyDomain.UntitledDataMap", and then also do the validation on save for any name conflicts. At least this will make users aware of the problem.

        Activity

        Andrus Adamchik created issue -
        Andrus Adamchik made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Critical [ 2 ]
        Fix Version/s 1.1 [BETA] [ 10001 ]
        Hide
        Andrus Adamchik added a comment -

        The fix is not 100% foolproof, but should work ok until we change the project structure in the future releases. Basically Modeler will make sure you can't rename a DataMap or DataNode using an existing name in the project. Default names will be created to avoid conflicts as well..

        Show
        Andrus Adamchik added a comment - The fix is not 100% foolproof, but should work ok until we change the project structure in the future releases. Basically Modeler will make sure you can't rename a DataMap or DataNode using an existing name in the project. Default names will be created to avoid conflicts as well..
        Andrus Adamchik made changes -
        Status Assigned [ 2 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Andrus Adamchik made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Henri Yandell made changes -
        Project Import Sat Mar 21 00:51:04 PDT 2009 [ 1237621864637 ]
        Ari Maniatis made changes -
        Workflow jira [ 12456118 ] Cayenne workflow [ 12486544 ]

          People

          • Assignee:
            Andrus Adamchik
            Reporter:
            Andrus Adamchik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development