For example sOmE_PROPerty in xsd must be sOmE_PROPerty in java class not someProperty.
I tried to use globalBindings enableJavaNamingConventions="false" but it doesn't work.
For example sOmE_PROPerty in xsd must be sOmE_PROPerty in java class not someProperty.
I tried to use globalBindings enableJavaNamingConventions="false" but it doesn't work.
You will need to use
underscoreBinding="asCharInWord"
instead ofenableJavaNamingConventions="false"
:customer.xsd
binding.xml
A JAXB binding file is used to customize the schema to Java conversion:
XJC Call
Customer
The generated property names now include the underscore character:
Without Using binding.xml
If you instead make the following XJC call:
You will see that the generated properties do not include the underscore:
Solved by changing source code of jaxb in class com.sun.xml.bind.api.impl.NameConverter like this: