Cayenne
  1. Cayenne
  2. CAY-1459

Modeler: DbEntities from other DataMaps under same domain are not displayed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1M1
    • Fix Version/s: 3.1 (final)
    • Component/s: Modeler
    • Labels:
      None

      Description

      The new 3.1 Modeler does not show DbEntities from other DataMaps in the same project. This worked in 3.0. Steps to reproduce:

      1. Create a project with 2 DataMaps and some DbEntities in each DataMap.
      2. Create ObjEntity in one DataMap.
      3. Table/View dropdown will only contain DbEntities from the ObjEntity's DataMap. (compare this to Modeler v. 3.0 - it will show DbEntities from both maps)

      A similar scenario is targets of DbRelationships.

        Activity

        Hide
        Rostislav added a comment -

        fix a problem

        Show
        Rostislav added a comment - fix a problem
        Hide
        Andrus Adamchik added a comment -

        Rostislav's patch fixes the first part of the problem - mapping ObjEntity to DbEntity. There's also another scenario with mapping DbRelationships between 2 DbEntities. (and maybe other places?)

        One comment on the patch though. This is incorrect, as client properties are actually enabled per DataMap policy. So this code is not needed:

        @@ -442,7 +443,7 @@ public class ObjEntityTab extends JPanel implements ObjEntityDisplayListener,

        // toggle visibilty and editability rules

        • toggleClientFieldsVisible(map.isClientSupported());
          + toggleClientFieldsVisible(true);

        Also not sure about CellRenderers changes?

        Show
        Andrus Adamchik added a comment - Rostislav's patch fixes the first part of the problem - mapping ObjEntity to DbEntity. There's also another scenario with mapping DbRelationships between 2 DbEntities. (and maybe other places?) One comment on the patch though. This is incorrect, as client properties are actually enabled per DataMap policy. So this code is not needed: @@ -442,7 +443,7 @@ public class ObjEntityTab extends JPanel implements ObjEntityDisplayListener, // toggle visibilty and editability rules toggleClientFieldsVisible(map.isClientSupported()); + toggleClientFieldsVisible(true); Also not sure about CellRenderers changes?
        Hide
        Rostislav added a comment -

        added error correction

        Show
        Rostislav added a comment - added error correction
        Hide
        Olga Tkacheva added a comment -

        fixed

        Show
        Olga Tkacheva added a comment - fixed

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development