Creating JAXB classes with custom class names

I have a schema that calls all its elements and complexTypes in capital letters, and so all my class names are also in caps.

Can you tell me how to do this and name the classes in CamelCase?

Example: XSD snippet:

<xs:element name="REGISTRATION_DATE">
    <xs:complexType mixed="true">
        <xs:attribute name="UNIT" />
    </xs:complexType>
</xs:element>

It is currently being generated as: REGISTRATIONDATE. But I would like to generate the class as: RegistrationDate.

Regards, Satya

+5
source share
1 answer

There is a plugin for XJC for this - the CamelCase Always plugin .

+3
source

All Articles