users@jaxb.java.net

Re: xsd:date and default binding

From: Henri Gomez <henri.gomez_at_gmail.com>
Date: Mon, 5 Feb 2007 21:20:20 +0100

Thanks for the information, I'll take a look at it.

2007/2/5, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_sun.com>:
> Henri Gomez wrote:
> > Hi to all,
> >
> > I'm using JAX-WS 2.1EA3 and JAXB2 to developp some webservices.
> >
> > My Business Bean are using java.util.Date where only the Date part is usefull.
> >
> > The WSDL/Schema bind them as xsd:datetime where I'd like to see xsd:date.
> >
> > I see that we should use XMLGregorianCalendar to have xsd:date but all
> > my business logic is using Date.
> >
> > How could I make JAXB2 use xsd:date for Date ?
>
> @XmlSchemaType. See its javadoc and it has the exact example for your case.
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems kohsuke.kawaguchi_at_sun.com
>
>
>