0 Replies Latest reply on Apr 4, 2007 5:07 AM by kot

    Cannot annotate minOccurs with JAXB

    kot

      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