Title: set-method for collections in Castor-XML

Hi Gundolf

I am using similar code to marshall an Vector and the unmarshall the same. I was able to marshall it but faced problem while unmarshalling it

Then I tried using the following mapping file and it works fine. If you can tell your specific error I can try helping you more.

 

<?xml version="1.0"?>

<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN"

������������������������ "http://castor.exolab.org/mapping.dtd">

 

<mapping>

������� <class name="model.user_data_access.AipXMLContainer">

��������������� <map-to xml="AipXmls"/>����

��������������� <field name="ItemsList"��������������������������������������������������������� <!—must have matching get set methods like getItemsList

���������������������� type="model.content_data_access.AIPOPImpl.AipXml"����� <!—the class of contents of the Vector

������������������������� collection="vector">

����������������������� <bind-xml name="Item"/>���������� ����������������������������������� <!--Optional -->

��������������� </field>

������� </class>

</mapping>

�����������

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 15 October 2003 11:01 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] set-method for collections in Castor-XML

 

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.

 

Reply via email to