Hi, I am a Castor newbie, and I am using the Source Generator to create
the java class for this XSD element:

   <xs:complexType name="ACCEPTType">
       <xs:sequence>
           <xs:element name="ORIGIN" type="xs:string"/>
           <xs:element name="ACCEPTD" type="xs:date" minOccurs="0"/>
       </xs:sequence>
   </xs:complexType>

I would like to have the ACCEPTD element mapped to a java.util.Date
property instead of the default org.exolab.castor.types.Date.
I created a mapping file with this entry:
...
   <elementBinding  name="/complexType:ACCEPTType/ACCEPTD">
       <member java-type="java.util.Date"/>
   </elementBinding >
...
but the binding instruction is simply ignored by the Source Generator.
Note that if I map to java.sql.Date the mapping instruction works (but
the Descriptor class doesn't compile due to the lack of the
java.sql.Date() constructor)

Why is the <member java-type="java.util.Date"/> mapping ignored ?
Where am I wrong ?

Thank for the help

--
Luca Buraggi, senior IT consultant
MATE - c.so Colombo 10, 20144 Milano

Office: [EMAIL PROTECTED]
Home: [EMAIL PROTECTED]



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

   http://xircles.codehaus.org/manage_email


Reply via email to