Вот выдержка из моей XML-схемы:
<xsd:complexType name="MyType">
<xsd:sequence>
<xsd:element name="Numbers">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Number" minOccurs="1" maxOccurs="5" type="xsd:decimal"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
JAXB генерирует мне следующий класс:
public class MyType {
protected MyType.Numbers numbers;
public static class Numbers {
protected List<BigDecimal> number;
}
}
Но я бы хотел игнорировать этот промежуточный класс и получитькак:
public class MyType {
protected List<BigDecimal> number;
}
Это как-то возможно?