Hi Keith,

I downloaded the zip file from the Castor site on Monday last week to try
this new feature. 

Here is the mapping I am trying:

        <class name="com.adp.base.dataload.PrimaryParticipant">
                <map-to xml="Participant"/>
                <field name="clientDefinedId" type="java.lang.String">
                        <bind-xml name="IdValue" location="ParticipantId"/>
                </field>
                <field name="participantTypeDate" type="date">
                        <bind-xml name="StartDate"
location="ParticipantType"/>
                </field>
        </class>

Here is the XML data:

        <Participant>
                <ParticipantId>
                        <IdValue>12345</IdValue>
                </ParticipantId>
                <ParticipantType>
                        <ParticipantTypeCode>1</ParticipantTypeCode>
                        <StartDate>1999-05-01T12:00:00.000</StartDate>
                </ParticipantType>
     </Participant>


Class looks like this:

public class PrimaryParticipant implements {
        
        private Date participantTypeDate;
        private String clientDefinedId;

Reply via email to