Home | Download | PDF | API | FAQ | Search | Feedback | History

> ## Customizing JAXB Bindings

> ### Schema-to-Java

> Custom JAXB binding declarations also allow you to customize your generated JAXB classes beyond the XML-specific constraints in an XML schema to include Java-specific refinements such as class and package name mappings.

> JAXB provides two ways to customize an XML schema:

> - As inline annotations in a source XML schema
> - As declarations in an external binding customizations file that is passed to the JAXB binding compiler

> Code examples showing how to customize JAXB bindings are provided in Chapter 18.

> ### Java-to-Schema

> XML schema that is generated from Java objects can be customized with JAXB annotations.