Too much code generated with JAXB
843834Jul 28 2004 — edited Aug 27 2004Hi,
We have a relatively complicated xsd with numerous global complex types, and elements. We are using JAXB to generate classes. We have found that every single global element has a class (that's good). Every single global complexType has a class (ok...) but every anonymous complexType has a class. Compounding the problem every class has an interface and an impl. We're generating around 77 classes.
Now, my real problem is that i don't think it's necessary, when our global element has a class (and an interface) generated to turn around and generate a class (and an interface) for it's CONTAINED complexType. It's overkill.
I've been looking at the documentation, and see that it is possible to indicate a class for a given element (custom binding). Is it possible to indicate that NO CLASS should be generated for an anonymous type?
Thanks,
G