Here is a rough example of what I am trying to do.

<binding name="Report" direction="input" force-classes="true">
  <mapping name="Test1" class="Report" ordered="false" flexible="true">
        <collection name="DRPs" field="_drps" set-method="sortAllDrps"
item-type="com.reged.datatrax.webeft.DisclosureReportingPage"
usage="optional"
unmarshaller="com.reged.datatrax.webeft.jibx.DrpMarshaller"/>
  </mapping>
  <mapping name="Test2v1" class="Test" ordered="false" flexible="true" >
                <value name="version" set-method="setVersion" style="attribute"
usage="optional" default=""/>
  </mapping>
  <mapping name="Test2v2" class="Test" ordered="false" flexible="true">
                <value name="ver" set-method="setVersion" style="attribute"
usage="optional" default=""/>
  </mapping>
</binding>

And results in this error message from the binding compiler:

Using bindings:
 TestBinding.xml
Running binding compiler version jibx_1_2_1
Error: Duplicate conversion defined for type Test; on mapping element at
(line 7, col 83, in TestBinding.xml)
Error running binding compiler
org.jibx.runtime.JiBXException: Binding TestBinding.xml is unusable because
of validation errors
        at org.jibx.binding.Utility.loadBinding(Utility.java:369)
        at org.jibx.binding.Utility.loadFileBinding(Utility.java:431)
        at org.jibx.binding.Compile.compile(Compile.java:212)
        at org.jibx.binding.Compile.main(Compile.java:374)

-- 
View this message in context: 
http://www.nabble.com/multiple-%3Cmapping%3E-definitions-for-the-same-class%2C-tp18216587p23432156.html
Sent from the jibx-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to