CC-XJC is an open source JAXB 3.0 XJC plugin for adding a copy-constructor to schema derived classes.
The plugin provides a '-copy-constructor' option which is enabled by adding its jar file to the XJC classpath.
Please refer to the project website for documentation (source).
CC-XJC 3.x can only be used with JAXB/XJC 3.0 and higher and Java 11 and higher. For use with older version please refer to old versions of the plugin.
- Many thanks to ChristianSchulte/CC-XJC (ccxjc.sourceforge.net) for the original implementation.