users@jaxb.java.net

Re: JAXBElement wrapper of combined minOccurs ="0" and nillable="true"

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 14 Dec 2006 16:08:56 -0800

landcast wrote:
> When I use jaxb to generate java type with xml schema, I found if the
> element in a sequence of complex type has both minOccurs="0" and
> nillable="true", it will generate the field, getter and setter with
> JAXBElement<String> instead of String, <B>is it correct</B>?

Yes, that is correct and expected.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com