There is now an xjc plugin that automatically generates the toString(), hashCode() and equals(Object) methods using jakarta-common-lang's ToStringBuilder, HashCodeBuilder and EqualsBuilder
Homepage POM file JAR file Javadoc'org.andromda.thirdparty.jaxb2_commons:commons-lang-plugin:2.2'