[jboss-user] [JBossWS] - Cannot annotate minOccurs with JAXB

kot do-not-reply at jboss.com
Wed Apr 4 05:07:22 EDT 2007


Hello everybody

Using JBossWS 1.2.0GA, I want to generate XSD-Schema out of Java using JAXB2.0 annotations.
There is i.e. an @XmlElement providing attribute 'nillable' but no 'minOccurs' or 'maxOccurs'.

Does anybody have an idea how to use annotations to define these two attributes? Are JAXB 2.0 annotations complete at all?

By default, JBoss WS generates minOccurs='0' and maxOccurs='unbound' for all elements of the XSD. This is not what I need.

thanks in advance

ng
Harald

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034442#4034442

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034442



More information about the jboss-user mailing list