Created issue http://jira.codehaus.org/browse/CASTOR-1901 . A complete runnable test case is included.

At 8:45 AM +0100 3/7/07, Werner Guttmann wrote:
Okay, time to file a new Jira issue at http://jira.codehaus.org/browse/CASTOR, and attach *all* relevant files for me to be able to replay this.

Werner

________________________________________
Von: Nick Pilch [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 06. März 2007 22:14
An: [email protected]
Betreff: Re: AW: [castor-user] Type conversion error: could not set value of _duration(int) with value of type java.lang.Integer

"Type conversion error: could not set value of _duration(int) with value of type java.lang.Integer"

At 8:55 AM +0100 3/6/07, Werner Guttmann wrote:
What's the exact error message you are getting ?

Werner

________________________________________
Von: Nick Pilch [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 05. März 2007 23:55
An: [email protected]
Betreff: Re: [castor-user] Type conversion error: could not set value of _duration(int) with value of type java.lang.Integer

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]


--

Nick Pilch / [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


--

Nick Pilch / [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to