Yep, you'd also need to decide how many elements
to put in each reoccuring type.
Would all lists get pre-populated w/ the same number of items?


      > -----Original Message-----
      > From: Keith Visco [mailto:[EMAIL PROTECTED] 
      > Sent: Thursday, October 30, 2003 1:46 PM
      > To: [EMAIL PROTECTED]
      > Subject: Re: [castor-dev] Shallow/Deep Instantiation
      > 
      > 
      > 
      > 
      > "Ostermueller, Erik" wrote:
      > > 
      > > That's an interesting question.  So would this 
      > feature instantiate 
      > > objects with a no-arg constructor? I haven't seen 
      > that kind of thing 
      > > in Castor.
      > 
      > Castor can deal with no-arg constructors when using a 
      > mapping file, as long as it's only attributes which are 
      > mapped to the constructor.
      > 
http://castor.exolab.org/xml-mapping.html#constructor-args

However, the "deep" instantiation that Robert is looking for is
something that's not supported. I don't think any one has ever asked for
that before on the Castor list, until now that is.

Would the "deep" instantiation be only for complex objects? For example,
you wouldn't want an element of type int or string (or any other simple
value) to be instantiated automatically when it's parent class is
created right? What would you use as a default value in that case?

--Keith

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to