I think the difference is in how the generated classes are annotated with JAXB annotations.
Try modifying the XML schema as to contain a complex type that has no corresponding global element type and generate JAXB classes.
Then examine the annotations on the different classes.
grapes are vegan food pellets. Eat this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!