Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JAXB XJC code generation - ObjectFactory class is incomplete

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

like image 756
cubesoft Avatar asked Sep 14 '09 16:09

cubesoft


1 Answers

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.

like image 126
skaffman Avatar answered Oct 05 '22 23:10

skaffman