<?xml version="1.0" encoding="UTF-8"?>
<cst:mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:cst="http://castor.exolab.org/" 
	xmlns="http://ACORD.org/Standards/Life/2"
	xsi:schemaLocation="http://castor.exolab.org/ mapping.xsd">

	<cst:class name="com.test.model.Person">
		<cst:field name="firstName" type="java.lang.String">
			<cst:bind-xml name="FirstName" node="element"/>
		</cst:field>
		<cst:field name="middleName" type="java.lang.String">
			<cst:bind-xml name="MiddleName" node="element"/>
		</cst:field>
		<cst:field name="lastName" type="java.lang.String">
			<cst:bind-xml name="LastName" node="element"/>
		</cst:field>
		<cst:field name="prefix" type="java.lang.String">
			<cst:bind-xml name="Prefix" node="element"/>
		</cst:field>
		<cst:field name="suffix" type="java.lang.String">
			<cst:bind-xml name="Suffix" node="element"/>
		</cst:field>						
	</cst:class>

	<cst:class name="com.test.model.Party">
		<cst:field name="id" type="java.lang.String">
			<cst:bind-xml name="id" node="attribute"/>
		</cst:field>		
		<cst:field name="partyTypeCode" type="java.lang.String">
			<cst:bind-xml name="PartyTypeCode" node="element"/>
		</cst:field>
		<cst:field name="partyTypeCodeCode" type="java.lang.String">
			<cst:bind-xml name="tc" node="attribute" location="PartyTypeCode"/>
		</cst:field>	
		<cst:field name="fullName" type="java.lang.String">
			<cst:bind-xml name="FullName" node="element"/>
		</cst:field>
		<cst:field name="govtID" type="java.lang.String">
			<cst:bind-xml name="GovtID" node="element"/>
		</cst:field>
		<cst:field name="govtIDTC" type="java.lang.String" nillable="true">
			<cst:bind-xml name="GovtIDTC" node="element"/>
		</cst:field>
		<cst:field name="govtIDTCCode" type="java.lang.String">
			<cst:bind-xml name="tc" node="attribute" location="GovtIDTC"/>
		</cst:field>		
		<cst:field name="residenceState" type="java.lang.String">
			<cst:bind-xml name="ResidenceState" node="element"/>
		</cst:field>	
		<cst:field name="person" type="com.test.model.Person">
			<cst:bind-xml name="Person" node="element"/>
		</cst:field>																					
	</cst:class>		
	
</cst:mapping>