-
Notifications
You must be signed in to change notification settings - Fork 54
JAXB2 SimpleHashCode Plugin
maffe edited this page Sep 3, 2019
·
4 revisions
Adds deep, reflection-free, runtime-free hashCode()
methods to the schema-derived classes.
This plugin also handles JAXBElement
s and, arrays and primitive types to generate the best possible hashCode()
methods.
Unlike the JAXB2 HashCode Plugin, this plugin does not require runtime libraries. But at the same time the generated methods do not accept locators or strategies.
- Activate the plugin using the
-XsimpleHashCode
switch.
See Using JAXB2 Basics Plugins.
- Example of the generated code
- See the [[
po-simple
sample project|Sample Project po-simple]] - See the following test project for usage example.
-
JAXB2 Basics Plugins
- Using JAXB2 Basics Plugins
- JSR-305 Support
- 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
- Sample Projects