Caroline,
The short answer is no. Castor doesn't add code in the constructor to
automatically instantiate an object tree for you. For simpleTypes with
default values, Castor will do this, since it's being told what the
default value is.
--Keith
Caroline Combaz wrote:
>
> Hi everybody.
>
> I am using Castor for the first time, to generate from a XML schema a
> set of javaBeans, which are used in my Struts application. You know,
> with the nested tags library, I should populate my objects very easily.
> But the problem is, Struts seems to need that, if MyMother contains an
> object MySon and an object MyDaugher, both children objects must be
> instantiated in MyMother constructor.
> Is there a way to ask Castor to do that?
>
> Thank you...
>
> Caroline
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-user
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user