Matthew Mower wrote:
> 
> Hi Keith
> 
> > Change your mapping.xml file as follows:
> >
> > from:
> > to:
> >
> >    <field name="values" type="string" collection="array"
> > direct="true">
> >       <bind-xml name="values" node="element"/>
> >    </field>
> >
> 
> Cool.  Thanks for that.
> 
> > I am not sure why "strings" isn't be flagged as an invalid
> > type. But if
> >
> 
> Hmm.. I'm now wondering what the purpose of the "strings" type in the XML
> mapping documentation is?

Ahh ok...well I guess even I don't know it all! ;-) I just looked at
org.exolab.castor.mapping.loader.Types.java, apparently Assaf added it
as a convenient way for declaring a String[]. It's been available since
the first initial version, but I guess it doesn't work properly. I'll
need to look into it more and find out what the issue is with it...or
have it removed.

In any case...I recommend sticking with "string" and collection="array".

Thanks,

--Keith

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

Reply via email to