JAXB2 SimpleEquals Plugin - highsource/jaxb-tools GitHub Wiki
Adds deep, reflection-free, runtime-free equals(...)
methods to the schema-derived classes.
This plugin also handles JAXBElement
s and, arrays and primitive types to generate the best possible equals(...)
methods.
Unlike the JAXB2 Equals Plugin, this plugin does not require runtime libraries. But at the same time the generated methods do not accept locators or strategies.
Usage
- Activate the plugin using the
-XsimpleEquals
switch.
See Using JAXB2 Basics Plugins.
Example
- Example of the generated code
- See the po-simple sample project
- See the following test project for usage example.