Aron Vaughan wrote:
> Yes, given the following example schema:
<snip />
> Using normal bindings the following files are created: CompanyType,
> ContactType, CourseBooking, StudentType and the objectFactory (each
> top-level element (Company, Contact, Booking, Student) gets an objectFactory
> create method which must be used for marshalling)
Yes, that's to be expected, but ...
> Using simple bindings (with the global bindings uncommented in the above
> schema) the following files are created: Company, CompanyType, Contact,
> ContactType, Booking, CourseBooking, Student, StudentType and the
> objectFactory (i.e. each top-level element gets a generated class that can
> be 'new'ed and marshaled)
This shouldn't be the csae. In fact when I compile that schema I only
get Booking, Company, Contact, ObjectFactory, and Student. So 5 classes
but without any JAXBElement things.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com