Hi,

what precisely is your question ? You have attached a lot of artefacts (classes, mapping, ...), but what is your problem ?

Kind Regards
Werner

On 12.02.2014 23:24, Arava, Srinivas wrote:
Hi,

I have also attached the sample project.

Here is sample mapping.

<?xmlversion=/"1.0"/ encoding=/"UTF-8"/?>

<!DOCTYPEmapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"

"http://castor.org/mapping.dtd";>

<mapping>

<classname=/"com.ussco.wms.domain.model.Person"/

verify-constructable=/"false"/>

<map-toxml=/"SPerson"/ />

<fieldname=/"name"/ type=/"com.ussco.wms.domain.model.Name"/

container=/"true"/ />

<fieldname=/"sportsTag"/ type=/"string"/>

<bind-xmlname=/"Name"/ node=/"element"/ location=/"CutomField"/ />

</field>

<fieldname=/"sportsGrade"/ type=/"string"/>

<bind-xmlname=/"Value"/ node=/"element"/ location=/"CutomField"/ />

</field>

<fieldname=/"academicTag"/ type=/"string"/>

<bind-xmlname=/"Name"/ node=/"element"/ location=/"CutomField"/ />

</field>

<fieldname=/"academicGrade"/ type=/"string"/>

<bind-xmlname=/"Value"/ node=/"element"/ location=/"CutomField"/ />

</field>

</class>

<classname=/"com.ussco.wms.domain.model.Name"/

verify-constructable=/"false"/>

<fieldname=/"prefix"/ type=/"string"/>

<bind-xmlname=/"SPrefix"/ node=/"element"/ />

</field>

<fieldname=/"first"/ type=/"string"/>

<bind-xmlname=/"SFirstName"/ node=/"element"/ />

</field>

<fieldname=/"last"/ type=/"string"/>

<bind-xmlname=/"SLastName"/ node=/"element"/ />

</field>

</class>

</mapping>

Following is the actual output.

<?xml version="1.0" encoding="UTF-8"?>

<SPerson>

     <SPrefix>Lord</SPrefix>

     <SFirstName>Baba</SFirstName>

     <SLastName>Sai</SLastName>

     <CutomField>

         <Name>Sprots</Name>

         <Value>A</Value>

         <Name>Academic</Name>

         <Value>A</Value>

     </CutomField>

</SPerson>

Following is the output I am hoping for, without any  additional classes.

<?xml version="1.0" encoding="UTF-8"?>

<SPerson>

     <SPrefix>Lord</SPrefix>

     <SFirstName>Baba</SFirstName>

     <SLastName>Sai</SLastName>

     <CutomField>

         <Name>Sprots</Name>

         <Value>A</Value>

         <Name>Academic</Name>

         <Value>A</Value>

     </CutomField>

</SPerson>

------------------------------------------------------------------------
Information contained in this e-mail message and in any attachments
thereto is confidential. If you are not the intended recipient, please
destroy this message, delete any copies held on your systems, notify the
sender immediately, and refrain from using or disclosing all or any part
of its content to any other person.



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to