Skip to content

Generated property and getter\setter names don't match each other... #52

Description

@makaxel

Hello.
I have in xsd:

            <xs:element name="queryfilter1" type="xrsi:QUERY_FILTER_Type" minOccurs="0">
                <xs:annotation>
                    <xs:appinfo>
                        <jxb:property name="DASQueryFilter1"/>
                    </xs:appinfo>
                </xs:annotation>
            </xs:element>

and in pom:

                        <plugin>
                            <groupId>de.codecentric</groupId>
                            <artifactId>cxf-spring-boot-starter-maven-plugin</artifactId>
                            <version>2.3.0.RELEASE</version>
                            <executions>
                                <execution>
                                    <goals>
                                        <goal>generate</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>

and after generating classes:

    @XmlElement(name = "queryfilter1")
    protected String **dasQueryFilter1**;
    public String **getDASQueryFilter1**() {        return dasQueryFilter1;    }
    public void setDASQueryFilter1(String value) {        this.dasQueryFilter1 = value;    }

Property and getter\setter names don't match each other - wrong case - property name was lowercased at start.
How to force the plugin to generate property and getter\setter names that match each other ?

Or maybe it is a bug?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions