On 2/12/02 9:06 PM, [EMAIL PROTECTED] wrote:
> Could you try to have an attribute <field set-method="setXXX">
> for your collection fields and see if it work for you.
Sure, though I don't understand why it should make a difference. Isn't
"setFoo" the default set-method for a field named "foo" ??
Anyway... using:
<field name="shifts" type="inpath.mdpath.castor.CastorShift"
required="true" collection="arraylist" set-method="setShifts">
Causes the error:
org.exolab.castor.mapping.MappingException: The attribute get-method="..."
in class inpath.mdpath.ScheduleTemplate accepting/returning object of type
class java.util.ArrayList was not found.
which is at least comprehensible, but clearly untrue since I have
public void setShifts(List shifts)
which will gladly accept an ArrayList.
If I specity set-method as well:
<field name="shifts" type="inpath.mdpath.castor.CastorShift"
required="true" collection="arraylist"
set-method="setShifts" get-method="getShifts">
gives the usual inexplicable error message:
org.exolab.castor.mapping.MappingException: The method setShifts in class
inpath.mdpath.ScheduleTemplate accepting/returning object of type class
inpath.mdpath.castor.CastorShift was not found
Theres clearly some strange interaction between these properties.
Next idea?
Thanks Thomas... Hopefully we can sort this out.
Todd V. Jonker
Inpath Solutions, LLC
www.inpathsol.com
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev