Hi All

I have an element defined in XML schema as follows:

<xsd:group name="Customer" >
<xsd:sequence>
     <xsd:element ..../>
     <xsd:element ..../>
     <xsd:element ..../>
     <xsd:element name="test" type="xsd:string"/>
</xsd:sequence>
</xsd:group>

I want to have the element test generated either as a java.util.Date or java.sql.Date. 
I specified a binding file as shown:

<Only relevant portion has been shown>
<cbf:groupBinding name="group:customer/test">
    <cbf:member name="test" java-type="java.sql.Date" handler="utils.DateFieldHandler" 
/>
</cbf:group>

This generates the test field as a java.sql.Date datatype in the Customer class. This 
is where I am stuck. What am I supposed to do in the Handler to enable the data type 
change during the unmarshalling process.

If someone has already dealt with this kind of problem could you please tell me how 
you solved it. I need to have the Dates in the MMDDYYYY format.

Thanks
A

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

Reply via email to