-
Notifications
You must be signed in to change notification settings - Fork 29
Generating_equals_and_hashCode_methods
Alexey Valikov edited this page Aug 31, 2017
·
1 revision
Although this is not directly required by the JPA specification, it is still recommended to have correct implementations of equals(...) and hashCode() methods in entity classes. JAXB uses the equals and hashCode plugins from JAXB2 Basics plugin package to generate these methods.
These plugins generate equals(...) and hashCode() methods. With Hyperjaxb3 you can configure, which equals and hash code strategies will be used TODO (default implementations are org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy and org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy). Alternatively you can turn equals(...) and hashCode() generation off TODO.