Hello Stephen

Thank you for your "hint"...
If I make as you said, the generated xml looks good to me.

Now my problem is to unmarshal the same xml.
I don't see how to bring the keys and models together...

Maybe someone has some example with a similar case.
(The example from the castor website is only with references of the same
objects)

Greetings Daniel


On Thu, 17 Apr 2008 11:21:29 -0400, "Stephen Bash" <[EMAIL PROTECTED]>
wrote:
> Daniel-
> 
> I believe when Castor sees the reference="true" attribute, it
> *assumes* the object will be marshalled elsewhere in the document.
> This causes Castor to only produce a reference, and not fully marshal
> the child object.  To force your keys to be fully marshalled, I
> believe they will have to appear outside of the DeviceModel objects.
> A quick solution that might work is create a heterogeneous Collection
> that includes all the keys and models then marshal that Collection.
> 
> BTW Hi Werner!  (creeps back into lurker status)
> 
> HTH,
> Stephen


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to