I'm trying to marshal a set of objects that have a many-to-many relationship to each other.

I have an Employee class that has a collection of Project instances, which in turn have a collection of Employee instances.

Obviously, if Employee A refers to Project B, Project B refers back to Employee.

Under Castor 0.9.5, this situation caused a stack overflow during marshalling. Under Castor 0.9.7, duplicate entries get silently dropped. This is even worse, since I'm losing data without warning!

I tried to solve this using <bind-xml reference="true"> for my collection fields. The referred objects are now indeed marshalled as just their reference ID, but the referred objects are not included in the generated XML. This makes it impossible to unmarshal the object correctly.

Is there a way to include the referred objects in my generated XML without losing data?

Henk van Voorthuijsen



-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to