Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
makaxel opened this issue Sep 16, 2020 · 0 comments
Open

Comments

@makaxel
Copy link

makaxel commented Sep 16, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant