users@jaxb.java.net

nillable="false" not working

From: Nunaan <niren.deshpande_at_gmail.com>
Date: Fri, 18 Jul 2008 07:28:22 -0700 (PDT)

I have an XSD which I convert to JAXB beans. In the XSD i have a
<xs:element name="terms" type="varchar215" nillable="false">

But when it creates the java classes it creates
@XmlElement(required = true)
    protected String terms;

instead of
@XmlElement(required = true,nillable=false)
    protected String terms;

It does not add the nillable = false in the annotation @XmlElement

Am I doing something wrong or is there a workaround for this or is it a bug?

Any help/pointers would be appreciated

Thanks,
ND
-- 
View this message in context: http://www.nabble.com/nillable%3D%22false%22-not-working-tp18530504p18530504.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.