Hello,

I get the following Exception, when using lazy loading with an arraylist. If
I disable lazy loading it works.

Here is the error-message:

org.exolab.castor.jdo.DataObjectAccessException: Type conversion error:
could not set value of FieldMolder of
com.gastroeasy.xml.Artikel.setkonditionList(com.gastroeasy.xml.Kondition
konditionList)

Here is the mapping:

<class name="com.gastroeasy.xml.Artikel" identity="artikelnr"
key-generator="MAX">
 <map-to xml="artikel" table="artikel"/>
 <field name="artikelnr" type="integer" required="true">
  <sql name="artikelnr"/>
 </field>
 <field name="konditionList" type="com.gastroeasy.xml.Kondition" lazy="true"
get-method="getKonditionList" set-method="setKonditionList"
collection="arraylist">
  <bind-xml name="kondition" node="element"/>
 </field>
</class>
<class name="com.gastroeasy.xml.Kondition" identity="id"
key-generator="MAX">
 <map-to xml="kondition" table="kondition"/>
 <field name="id" type="integer" required="true">
  <sql name="kondition_id"/>
  <bind-xml name="id" node="attribute"/>
 </field>
 <field name="kunde" type="java.lang.String" required="true">
  <sql name="kunde_login"/>
  <bind-xml name="kunde" node="attribute"/>
 </field>
 <field name="artikel" type="com.gastroeasy.xml.Artikel">
  <sql name="artikelnr"/>
 </field>
 <field name="rabatt" type="integer" required="true">
  <sql name="rabatt" type="integer"/>
  <bind-xml name="rabatt" node="element"/>
 </field>
</class>

Why does this only work, when lazy loading is disabled?

Thomas

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to