jaxb-v2 icon indicating copy to clipboard operation
jaxb-v2 copied to clipboard

From property usPrice xjc generates getUSPrice, but should be getUsPrice; the same for the setter.

Open ericjvandervelden opened this issue 8 years ago • 0 comments

In the modify-marshal sample there is in the po.xsd:

<xsd:element name="USPrice" type="xsd:decimal"/>

xjc generates an property usPrice with getter and setter getUSPrice and setUSPrice.

But if you set @XmlAccessorType(XmlAccessType.PROPERTY) on class Item, and you put the @XmlElement(name = "USPrice", required = true) on the getter or setter of usPrice, then you will the that the getter and setter should be called getUsPrice and setUsPrice.

ericjvandervelden avatar Oct 17 '17 07:10 ericjvandervelden