Thanks to this list I am now using the following XML:
<field name="pricing"
type="com.ingenta.ics.ecommerce.api.item.Pricing">
<bind-xml auto-naming="deriveByClass" node="element" />
</field>
<class name="com.ingenta.ics.ecommerce.api.item.Pricing"
verify-constructible="false">
<description>Mapping for Pricing</description>
<map-to name="pricing"/>
</class>
<class name="com.ingenta.ics.ecommerce.api.item.FreePricing"
extends="com.ingenta.ics.ecommerce.api.item.Pricing">
<description>Mapping for FreePricing</description>
<map-to name="freePricing"/>
<field name="id" type="com.ingenta.ics.item.Id"/>
<field name="scheduleId" type="com.ingenta.ics.item.Id"/>
<field name="taxCode" type="string"/>
</class>
I created one of the objects in question such that getPricing() would
return a FreePricing. Castor, when asked to marshall this beast, gave me
<free-pricing/>
which implies to me that I am defining the FreePricing class rule
incorrectly somehow, since I expected it to give me <freePricing/>.
When I give it a file to unmarshall, including <freePricing/> in the
relevant spot, it complains
unable to find FieldDescriptor for 'freePricing' in ClassDescriptor
which seems reasonable if in fact it thinks that object is bound to the
"free-pricing" element.
Does anyone know what I'm doing wrong?
Thanks in advance,
Jessica
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------