> Daniel Santos wrote:
>
> Hi everybody!
>
> I'm using castor Xml. One of my xsd elements is of type xsd:date. The
> mapping docs say that this maps to a java.util.Date.
The mapping docs can't say this, because the mapping docs are not
related to the source code generator.
What you want to do is look at the Source Generator docs, which tell you
how XML Schema datatypes map into Java types. You'll notice that
xsd:date cannot map into java.util.Date because the description of
xsd:date does not match the functionality of what java.util.Date
provides. Instead you want to use "xsd:dateTime" for Castor 0.9.3, or
"xsd:timeInstant" for Castor 0.9.2.
> When I generate
> the classes they get mapped to org.exolab.castor.types.Date. I'm not
> using any mapping file, just using the defaults.
> I just don't want to
> have any castor specific classes used directly in the generated
> classes client code. By the way, my version of castor is 0.9. What I
> missing here ?
You need to be looking at the Source Code Generator documentation and
not the mapping file documentation.
--Keith
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev