When we have both minouucrs=0
and nillable=true
in XSD it will generate JAXBElement. To avoid this we need to remove either of the one.
If you use generateElementProperty="false"
property when generating POJO objects from XSD scheme then it will be working like a charm