]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/main/resources/org/argeo/slc/castor/test/mapping.xml
Introduce test result attributes instead of root tags
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / resources / org / argeo / slc / castor / test / mapping.xml
index adfea8a9d4e7bab9b66b359c5d2365082b5eab4b..3d407e224518eafa7f78c6b2a7ad066b485a65e0 100644 (file)
                        <bind-xml name="uuid" node="attribute" />\r
                </field>\r
                <field name="closeDate" />\r
+               <field name="attributes" collection="map">
+                       <bind-xml name="attribute" location="attributes">
+                               <class name="org.exolab.castor.mapping.MapItem">
+                                       <map-to
+                                               ns-uri="http://argeo.org/projects/slc/schemas" ns-prefix="slc" />
+                                       <field name="key" type="string">
+                                               <bind-xml name="name" node="attribute" />
+                                       </field>
+                                       <field name="value" type="string">
+                                               <bind-xml node="text" />
+                                       </field>
+                               </class>
+                       </bind-xml>
+               </field>
                <field name="resultParts" collection="map">\r
                        <bind-xml name="result-part" location="result-parts">\r
                                <class name="org.exolab.castor.mapping.MapItem">\r