Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.2.M1
-
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"
- a/cayenne-server/src/test/resources/cay743/map2.map.xml
-
- 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>
~