Hi Sree,
I should be able to write the mappings yourself based on Castor
documentation. Anyway, there are drafts of the 2 mappings.
<class name="Employee">
<map-to xml="Employee"/>
<field name="FirstName" type="java.lang.String">
<bind-xml name="firstName" node="element"/>
</field>
<field name="LastName" type="java.lang.String">
<bind-xml name="lastName" node="element"/>
</field>
</class>
<class name="Employee">
<map-to xml="Employee"/>
<field name="FirstName" type="java.lang.String">
<bind-xml name="firstName" node="element"/>
</field>
<field name="MiddleName" type="java.lang.String">
<bind-xml name="middleName" node="element"/>
</field>
<field name="LastName" type="java.lang.String">
<bind-xml name="lastName" node="element"/>
</field>
</class>
Depending on your scenario you have to use one of them to marshal your
employee object.
Regards
Ralf
sbasani schrieb:
> Ralf,
>
> Thanks for the reply.
>
> Could you please give me some example and sample code on the same scenario.
>
> Thanks & Regards,
> Sree
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email