I'm using cxf-codegen-plugin (maven) with wsdl2java goal to generate the java code from my wsdl.
The problem is that it generates protected attributes when I want private attributes:
My wsdl element:
<element name="productCode" type="string"/>
Expected:
@XmlElement(required = true)
private String productCode;
Result:
@XmlElement(required = true)
protected String productCode;
Is there anything to add in my wsdl or in the plugin configuration to generate privates fields ?
Thanks !