Hi !
My question is about marshalling collections in latest Castor.
I notice that marshalling behaviour had changed since 0.3.9.21
Assuming I have an object like this
class List {
java.util.Collection _liList ;
java.util.Collection getLi() {
return this._liList ;
}
void setLi ( java.util.Collection vLi ) {
this._liList = vLi;
}
void addLi ( java.lang.String vLi ) {
this._liList.add(vLi);
}
}
What I need is something like this:
<list>
<li> text </li>
<li> text </li>
...
</list>
My mapping.xml looks like this :
<class name="List">
<map-to xml="list" />
<field name="li" collection="collection" type="string" container="false"
required="false" direct="false" lazy="false" transient="false" >
<bind-xml name="li" node="element" reference="false" transient="false" />
</field>
</class>
What I get after marshalling List object is :
<list>
<li>
<string>text</string>
<string>text</string>
...
</li>
</list>
which is not what I want.
Setting <field ... container='true' ... > produce:
<list>texttexttext</list>
What should I do now to get Castor-0.3.9.21 behaviour ?
Thanks in advance,
Vadim Solonovich,
mailto:[EMAIL PROTECTED],
Software Development Dpt.,
Park.RU, Ltd.
http://www.park.ru, http://garant.park.ru
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev