Hello all,
in a Java object called "SourceVO", I have an attribute called "sources", which
is a list of "SourceVO"'s. Therefore, each of the list objects contains a list
of SourceVO's itself (recursion).
I tried to bind this with the following JiBX mappings, but with these, the
binding compiler (v1.1.3) runs into an endless loop.
How can I get the recursive collections bound properly?
<mapping [...]>
[...]
<collection field="sources"
factory="org.foobar.JiBXHelper.sourceVOListFactory" usage="optional">
<structure name="source" map-as="org.foobar.SourceVO" />
</collection>
[...]
</mapping>
<mapping class="org.foobar.SourceVO" ordered="false" allow-repeats="true"
abstract="true">
[...]
<collection field="sources"
factory="org.foobar.JiBXHelper.sourceVOListFactory" usage="optional">
<structure name="source" map-as="org.foobar.SourceVO" /> </collection>
[...]
</mapping>
Regards,
Johannes
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users