-
Notifications
You must be signed in to change notification settings - Fork 99
JAXB2 Basic
Laurent Schoelens edited this page Aug 25, 2023
·
5 revisions
JAXB2 Basics is an open source project, part of the JAXB Tools repository, which provides useful plugins and tools for JAXB 2.x reference implementation.
These plugins are available :
-
JAXB2 SimpleEquals Plugin - generates runtime-free reflection-free
equals(...)
methods. -
JAXB2 SimpleHashCode Plugin - generates runtime-free reflection-free
hashCode()
methods. - Equals Plugin - generates reflection-free
equals(...)
methods. - HashCode Plugin - generates reflection-free
hashCode()
methods. - ToString Plugin - generates reflection-free
toString()
methods. - Copyable Plugin - generates reflection-free
copy(...)
deep copying. - Mergeable Plugin - generates reflection-free
merge(...)
methods to merge data from two source objects into the given object. - Inheritance Plugin - makes schema-derived classes extend certain class or implement certain interfaces.
- Wildcard Plugin - allows you to specify the wildcard mode for the wildcard properties.
- AutoInheritance Plugin - makes classes derived from global elements or complex types extend or implement certain classes or interfaces automatically.
- Setters Plugin - generates setters for collections.
-
Simplify Plugin - simplifies weird properties like
aOrBOrC
. -
EnumValue Plugin - makes all the generated enums implement the
EnumValue<T>
interface. - JAXBIndex Plugin - generated
jaxb.index
files listing schema-derived classes. - FixJAXB1058 Plugin - fixes JAXB-1058.
New plugins from 2.0.4 version :
- Commons Lang Plugin - generates the toString(), hashCode() and equals() methods using Apache commons-lang3.
- Default Value Plugin - modifies the JAXB code model to set default values to the schema default attribute.
- Fluent API Plugin - support a fluent api in addition to the default (JavaBean) setter methods.
- Namespace Prefix Plugin - adds javax.xml.bind.annotation.XmlNs annotations to package-info.java files
- Value Constructor Plugin - generates another constructor, taking an argument for each field in the class and initialises the field with the argument value.
Documentation is currently being moved from the old wiki :
https://github.com/highsource/jaxb2-basics/wiki/Home
- Many thanks to James Annesley for his ideas and help with the JAXB2 SimpleEquals Plugin and the JAXB2 SimpleHashCode Plugin.
- Home
- Migration guide
-
JAXB Maven Plugin
- Quick Start
-
User Guide
- Basic Usage
- Specifying What To Compile
- Referencing Resources in Maven Artifacts
- Using Catalogs
- Using Episodes
- Modular Schema Compilation
- Controlling the Output
- Using JAXB Plugins
- Using a Specific JAXB Version
- Configuring Extension, Validation and XML Security
- IDE Integration
- Miscellaneous
- Configuring Proxies
- Maven Documentation
- Configuration Cheat Sheet
- Common Pitfalls and Problems
-
JAXB2 Basics Plugins
- Using JAXB2 Basics Plugins
- JSR-305 Support
-
JAXB2 Basics Plugins List
- SimpleEquals Plugin
- SimpleHashCode Plugin
- Equals Plugin
- HashCode Plugin
- ToString Plugin
- Copyable Plugin
- Mergeable Plugin
- Inheritance Plugin
- AutoInheritance Plugin
- Wildcard Plugin
- Setters Plugin
- Simplify Plugin
- EnumValue Plugin
- JAXBIndex Plugin
- FixJAXB1058 Plugin
- Commons Lang Plugin
- Default Value Plugin
- Fluent API Plugin
- Namespace Prefix Plugin
- Value Constructor Plugin
- Boolean Getter Plugin
- CamelCase Plugin
- XML ElementWrapper Plugin
- Parent Pointer Plugin
- Property Listener Injector Plugin
- Annox
- JAXB Annotate Plugin
-
HyperJAXB3
- Build System Support
- Customization Guide
- Databases
- Development guide
- Extension guide
- FAQ
- IDE Support
- Java Persistence
- JAXB
- JDK Support
- Project Templates
-
Reference
- Adding vendor-specific annotations
- Features
- Integrating Hyperjaxb3 in builds
- Introduction
- Making schema-derived classes ready for JPA
- Adding required properties
- Applying workarounds for JAXB vs. JPA conflicts
- Enforcing top-level classes
- Generating equals and hashCode methods
- Generating ORM metadata
- Generating persistence unit descriptor
- JPA 2 Support
- Making classes serializable
- Testing generated mappings
- Reference - single page
- Related Projects
- Sample projects
- Solutions
- Target Scenarios
- Test Projects
- Tutorials
- Best Practices
- FAQ
- Sample Projects
- Support
- License
- Distribution