Skip to main content

Using jaxb2-basics plugin with XJC and generateCode method

No replies
ebelenfant
Offline
Joined: 2013-12-11
Points: 0

Hi,

does anyone has an example about applying jaxb2-basics plugin in order to generate hashcode and equals methods into java generated classes.

I'm abble to use maven plugin to do that but i miss a piece of code to build the plugin array to pass to the method
JCodeModel jCodeModel = model.generateCode(Plugin[] arg0, ErrorListener arg1);

Thanks for your help