Hi Etienne,
Thanks for your message.
Unfortunately, I'm not aware of any XJC plugins that implement equals() and hashCode() correctly without any external dependencies. But you can easily check for equality by serialising both Configuration objects to an XML string using
boolean equal(Configuration c1, Configuration c2) {
try {
StringWriter w1 = new StringWriter();
StringWriter w2 = new StringWriter();
JAXB.marshal(c1, w1);
JAXB.marshal(c2, w2);
return w1.toString().equals(w2.toString());
}
catch (IOException ignore) {}
return false;
}