The DTO is generated and a collection is annotated with @XmlElementWrapper.
Here it is expected that the element is a collection.
I would like this extension to add @Size according to the minOccurs and maxOccurs.
I know that XSD does not understand collection and I know that you bind particular annotation to particular element type in schema. Would you be able to recognize Java Collection and add the annotation @Size?
The DTO is generated and a collection is annotated with
@XmlElementWrapper
. Here it is expected that the element is a collection. I would like this extension to add@Size
according to theminOccurs
andmaxOccurs
. I know that XSD does not understand collection and I know that you bind particular annotation to particular element type in schema. Would you be able to recognize Java Collection and add the annotation@Size
?