Using jaxb2-maven-plugin and jaxb-xjc, while generating classes jaxb creates boolean accessors with get prefix however I want it to create with java convention "is".
here is the xsd:
<xsd:complexType name="QueryWorkgroupRequestType">
<xsd:sequence>
...
<xsd:element name="disabled" type="xsd:boolean" minOccurs="0" maxOccurs="1" />
...
</xsd:sequence>
</xsd:complexType>
and the created method is;
public Boolean getDisabled() {
return disabled;
}
But I want instead;
public Boolean isDisabled() {
return disabled;
}
I tried
<xsd:annotation> <xsd:appinfo> <jaxb:globalBindings enableJavaNamingConventions="true" generateIsSetMethod="true"/> </xsd:appinfo> </xsd:annotation>
but no chance.
No comments:
Post a Comment