Hi All,

I am quite new to JibX and need some help rergarding mapping of classes
with circular references.

In my case ClassA contains a set of objects of classB and ClassC while
ClassB and ClassC contains a member of type ClassA.

I used the following mapping  for binding but when I start marshalling the
objects it goes into infinite loop due to circular refereces.

I'll appreciate if someone can help me out of the situation.

thanks

<mapping class="example.ClassA">
        <value name="id" field="id" usage="optional"/>
        <value style="element" name="name" field="name" usage="optional"/>
        <value style="element" name="description" field="description"
usage="optional"/>
        <collection name="setOfClassB" field="setOfClassB"
item-type="example.ClassB"/>
</mapping>

<mapping class="example.ClassB">
        <value name="id" field="id" usage="optional"/>
        <value style="element" name="desc" field="desc" usage="optional"/>
        <structure name="varClassA" field="varClassA" usage="optional"/>
</mapping>




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to