This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
So, I have a really silly/basic question trying to use schemagen, but I'm darned if I can find this in the docs (but I don't really believe it's not there!)
I am starting with Java classes and looking to use schemagen to create the "parts" to allow me to marshal/unmarshal the objects. (BTW, my knoweldge is limited, but I have successfully done this starting from an XSD file using xjc, so I'm not totally beginner).
I have written a Java class, and annotated it with the likes of @XmlElement, and run schemagen against it. The problem is that there's no ObjectFactory (xjc of course, creates this for me, so I was expecting the same thing here), and so parsing fails. Am I supposed to create the ObjectFactory class myself, or is it created for me. And if it's supposed to be created for me, how do I make this happen. If I write it, what are the specifications for it?