Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Too much code generated with JAXB

843834Jul 28 2004 — edited Aug 27 2004
Hi,
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2004
Added on Jul 28 2004
1 comment
140 views