您可以使用
jaxb:property定制来自定义属性名称。
<bindings xmlns="http://java.sun.com/xml/ns/jaxb" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.1"> <bindings schemaLocation="schema.xsd" version="1.0" node="/xs:schema"> <bindings node="xs:complexType[@name='SOME_TYPE']"> <bindings node="xs:sequence/xs:element[@name='REC_LOC']"> <property name="RecLoc"/> </bindings> </bindings> </bindings></bindings>
(未经测试。)
也可以看看:
globalBindings/@enableJavaNamingConventions
nameXmlTransform



