title: JAXB @XmlElements to have minOccurs = 1
body: <p>So I want to have a list to be annotated with @XmlElements like the following </p>
  
  <pre><code>@XmlElements(
          {
              @XmlElement(name = "Apple", type = Apple.class),
              @XmlElement(name = "Orange", type = Orange.class),
              @XmlElement(name = "Mango", type = Mango.class)
          }
  )
  public List&lt;Fruit&gt; getEntries() {
          return fruitList;
  }
  </code></pre>
  
  <p>I am wondering whether there is a way to enforce the list to contain at least 1 element, because right now, the xsd looks like</p>
  
  <pre><code>&lt;xs:complexType name="fruitList"&gt;
      &lt;xs:sequence&gt;
        &lt;xs:choice minOccurs="0" maxOccurs="unbounded"&gt;
          &lt;xs:element name="Apple" type="tns:apple"/&gt;
          &lt;xs:element name="Orange" type="tns:orange"/&gt;
          &lt;xs:element name="Mango" type="tns:mango"/&gt;
        &lt;/xs:choice&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  </code></pre>