"Quinn, Kim John" wrote:
>
> Hello everyone,
>
> Testing out Castor for potential use and so far think its great but I have a
> 2 questions:
>
> Let's say for instance I have the following structure:
>
> Class A, with 2 children B and C...so
>
> --Person
> |
> |--1---*-->ContactMethod
> |
> |--1---*-->Address
>
> I create a new instance, fill the values for all objects, store it, then
> marshall it out to XML...that works fine.
>
> QUESTION 1: Now, I want to unmarshall the XML "back into" this
> structure....do I have to manually iterate the children because only my root
> object is getting "updated?" The children are all being inserted as new.
>
You might want to try the CVS version...I added initial support for
Unmarshaller#setReuseObjects(boolean) which, when set to true, will
try to reuse exising objects within the tree. Simple tests are working
for me. I haven't had a chance to do extensive testing....
--Keith
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev