I implemented your suggestion and I'm back to the drawing board, with
a type conversion error. Below is the mapping file in progress and
the relevant parts of my source files. I'd be glad to file a bug
report if you think that's the thing to do at this point.
<?xml version="1.0" encoding="UTF-8"?>
<mapping xmlns="http://castor.exolab.org/"
xmlns:cst="http://castor.exolab.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="mapping">
<description>Castor generated mapping file</description>
<class cst:name="com.hhn.care.ScheduleDef">
<description>Translation mapping for ScheduleDef</description>
<field name="_sessionPrefix" type="java.lang.String" direct="true">
<bind-xml name="prefix" node="attribute"/>
</field>
<field name="_duration" type="integer" direct="true">
<bind-xml name="duration" node="attribute"/>
</field>
</class>
<class cst:name="ScheduleDefinition" extends="com.hhn.care.ScheduleDef">
<description>Translation mapping for ScheduleDefinition</description>
<map-to cst:xml="scheduledef"/>
<field cst:name="scheduleItems" cst:type="ScheduleItemServer"
get-method="getSIVector" set-method="setSIVector" collection="vector">
<bind-xml name="sitem" node="element"/>
</field>
</class>
<class cst:name="ScheduleItemServer">
<description>Translation mapping for ScheduleItemServer</description>
<map-to cst:xml="sitem"/>
</class>
</mapping>
public class ScheduleDef {
public int _duration = 90;
public String _sessionPrefix = "Day ";
}
public class ScheduleItem extends ScheduleDef {
}
--
Nick Pilch / [EMAIL PROTECTED]