2013-04-08 70 views

回答

0

许多JAXB(JSR-222)的注释(即@XmlElement@XmlAttribute@XmlType,等等),可以指定一个名字来覆盖默认一个从类或属性名称的。

@XmlElement(name="currencyType") 
public String getCurrency() { 
    return currency; 
}