I'm using maven-jaxb2-plugin to generate JAXB classes. I have no control over the WSDL or XSD.
The XSD specifies either a single "MyObject", or a parent object containing a list of "MyObjects". I know they're the same. But the plugin doesn't (naturally). Is there a way I can tell it to use a single (non-inner) class for both? Otherwise, I would need to write lots of duplicate code...
Thanks!