cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmen...@apache.org
Subject svn commit: r506839 - in /cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding: 1to1-encoded.xml 1to1-mapped.xml 1to1-mapping.xml
Date Tue, 13 Feb 2007 03:27:45 GMT
Author: kmenard
Date: Mon Feb 12 19:27:44 2007
New Revision: 506839

URL: http://svn.apache.org/viewvc?view=rev&rev=506839
Log:
CAY-597: XML Encoder with Mapping outputs incorrect XML.
Fixed the encoding problem described and another discovered in the decoding process after
the encoder was fixed.  Tests added as well.

Added:
    cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-encoded.xml
    cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-mapped.xml
    cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-mapping.xml

Added: cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-encoded.xml
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-encoded.xml?view=auto&rev=506839
==============================================================================
--- cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-encoded.xml
(added)
+++ cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-encoded.xml
Mon Feb 12 19:27:44 2007
@@ -0,0 +1,15 @@
+<Test type="org.apache.cayenne.xml.TestObject">
+<parent type="org.apache.cayenne.xml.TestObject">
+<parent type="org.apache.cayenne.xml.TestObject">
+<name type="java.lang.String">Sue</name>
+<age type="java.lang.Integer">117</age>
+<open type="java.lang.Boolean">false</open>
+</parent>
+<name type="java.lang.String">Bill</name>
+<age type="java.lang.Integer">94</age>
+<open type="java.lang.Boolean">true</open>
+</parent>
+<name type="java.lang.String">George</name>
+<age type="java.lang.Integer">57</age>
+<open type="java.lang.Boolean">false</open>
+</Test>

Added: cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-mapped.xml
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-mapped.xml?view=auto&rev=506839
==============================================================================
--- cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-mapped.xml
(added)
+++ cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-mapped.xml
Mon Feb 12 19:27:44 2007
@@ -0,0 +1,15 @@
+<Test>
+<Test>
+<Test>
+<Name>Sue</Name>
+<Age>117</Age>
+<IsOpen>false</IsOpen>
+</Test>
+<Name>Bill</Name>
+<Age>94</Age>
+<IsOpen>true</IsOpen>
+</Test>
+<Name>George</Name>
+<Age>57</Age>
+<IsOpen>false</IsOpen>
+</Test>
\ No newline at end of file

Added: cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-mapping.xml
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-mapping.xml?view=auto&rev=506839
==============================================================================
--- cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-mapping.xml
(added)
+++ cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/resources/xmlcoding/1to1-mapping.xml
Mon Feb 12 19:27:44 2007
@@ -0,0 +1,8 @@
+<model>
+    <entity name="org.apache.cayenne.xml.TestObject" xmlTag="Test">
+    	<property name="parent" xmlTag="Test"/>
+        <property name="name" xmlTag="Name"/>
+        <property name="age" xmlTag="Age"/>
+        <property name="open" xmlTag="IsOpen"/>
+    </entity>
+</model>



Mime
View raw message