eclipse-ee4j / jaxb-ri

Jaxb RI
https://eclipse-ee4j.github.io/jaxb-ri/
BSD 3-Clause "New" or "Revised" License
202 stars 110 forks source link

-Xequals -XhashCode options are not working #1698

Open bdarwin opened 1 year ago

bdarwin commented 1 year ago

I noticed we can't pass equals and hashcode options to jaxb-ri XJC task to generate these methods.

In javaee there were plugins to generate these methods. https://github.com/javaee/jaxb2-commons/blob/master/basics/basic/src/main/java/org/jvnet/jaxb2_commons/plugin/equals/EqualsPlugin.java https://github.com/javaee/jaxb2-commons/blob/master/basics/basic/src/main/java/org/jvnet/jaxb2_commons/plugin/hashcode/HashCodePlugin.java

Is there any other way to generate these methods?

laurentschoelens commented 1 year ago

Hi @bdarwin, I think you're looking for https://github.com/highsource/jaxb2-basics which is the official fork of the previous repository

See documentation here : https://github.com/highsource/jaxb2-basics/wiki/Using-JAXB2-Basics-Plugins Please don't use 1.11.1 version of the plugin (release by mistake). The last release is 0.13.1. We are also currently working on jakarta official support in maven associated plugin.

Regards

laurentschoelens commented 9 months ago

@lukasj : this issue can be closed I think

laurentschoelens commented 9 months ago

@bdarwin : another comment before closing the issue :