Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1924

Upgrade of a project to v7 with cross-map inheritance loses super entity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.2.M1
    • 4.0.M2
    • None
    • None

    Description

      I am upgrading cay743/cayenne-domain.xml project in our unit tests, using the new modeler (i.e. from v6 to v7). Below is the summary of changes to the DataMaps on upgrade. The noteable thing is the loss of "superEntityName" attribute if the superentity is in another DataMap.

      +++ b/cayenne-server/src/test/resources/cay743/map1.map.xml
      @@ -1,10 +1,10 @@
      <?xml version="1.0" encoding="utf-8"?>
      -<data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
      +<data-map xmlns="http://cayenne.apache.org/schema/7/modelMap"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      • xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap http://cayenne.apache.org/schema/3.0/modelMap.xsd"
      • project-version="6">
        + xsi:schemaLocation="http://cayenne.apache.org/schema/7/modelMap http://cayenne.apache.org/schema/7/modelMap.xsd"
        + project-version="7">
        <obj-entity name="Entity11">
        </obj-entity>
      • <obj-entity name="Entity12" superEntityName="Entity22">
        + <obj-entity name="Entity12">
        </obj-entity>
        </data-map>
        diff --git a/cayenne-server/src/test/resources/cay743/map2.map.xml b/cayenne-server/src/test/resources/cay743/map2.map.xml
        index 3abfc6c..5061c63 100644
          • a/cayenne-server/src/test/resources/cay743/map2.map.xml
            +++ b/cayenne-server/src/test/resources/cay743/map2.map.xml
            @@ -1,9 +1,9 @@
            <?xml version="1.0" encoding="utf-8"?>
            -<data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
            +<data-map xmlns="http://cayenne.apache.org/schema/7/modelMap"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      • xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap http://cayenne.apache.org/schema/3.0/modelMap.xsd"
      • project-version="6">
      • <obj-entity name="Entity21" superEntityName="Entity11">
        + xsi:schemaLocation="http://cayenne.apache.org/schema/7/modelMap http://cayenne.apache.org/schema/7/modelMap.xsd"
        + project-version="7">
        + <obj-entity name="Entity21">
        </obj-entity>
        <obj-entity name="Entity22">
        </obj-entity>
        ~

      Attachments

        Activity

          People

            Unassigned Unassigned
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: