cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-1924) Upgrade of a project to v7 with cross-map inheritance loses super entity
Date Sat, 05 Apr 2014 09:00:24 GMT

     [ https://issues.apache.org/jira/browse/CAY-1924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik updated CAY-1924:
---------------------------------

    Priority: Critical  (was: Major)

> Upgrade of a project to v7 with cross-map inheritance loses super entity
> ------------------------------------------------------------------------
>
>                 Key: CAY-1924
>                 URL: https://issues.apache.org/jira/browse/CAY-1924
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 3.2M1
>            Reporter: Andrus Adamchik
>            Priority: Critical
>
> 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.
This is reproducible on a clean project as well.
> +++ 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>
> ~



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message