jaxb-v2
jaxb-v2 copied to clipboard
From property usPrice xjc generates getUSPrice, but should be getUsPrice; the same for the setter.
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.