Hi Gundolf,
This is a known issue. Castor assumes (and sometimes erroneously) that
the "get" method returns an actual reference to the collection. So if
"get" method does not return null, Castor will use the returned
collection to add the elements. Since it assumes it has an actual
reference it doesn't call again the set-method (it should, but it
doesn't).
If the get-method returns null, Castor will create a new instance and
call the set-method.
Sorry for the incovenience.
--Keith
> [EMAIL PROTECTED] wrote:
>
> Hi,
>
> I marshal a Vector of object to XML, which works fine and the file
> result looks ok. Trying to unmarshal with the same class structure and
> mapping file fails, because the set-method for the Vector is not
> called. The access methods use Vector as argument type, corresponding
> the collection type 'vector' in the mapping file.
>
> As marshalling works, I assume here is some configuration problem,
> some property not set or a special definition of the set-method.
>
> Can anyone help ?
>
> Thanks in advance
>
> Gundolf
>
> We Make - You Win
> Besuchen Sie PASS auf der European Banking and Insurance Fair!
> EBIF Frankfurt/Main, 27. - 29. Oktober, Halle 3.0, Stand J58.
>
> Diese E-Mail enth�lt vertrauliche und/oder rechtlich gesch�tzte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> E-Mail irrt�mlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
> die unbefugte Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information. If
> you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and destroy this e-mail.
> Any unauthorized copying, disclosure or distribution of the material
> in this e-mail is strictly forbidden.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev