I generate Java classes from my XSD schema file using XJC command line tool. The ObjectFactory class generates incomplete content. It generates creation methods without JAXBElement<Type> createType
decoration.
What may be the reason of this? Regards Dominik
Only some types in a JAXB2 XJC-generated binding need JAXBElement
wrappers. Those types that have the @XMLRootElement
annotation do not need the wrapper, and so the object factory does not generate one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With