Here is a way to globally enable a JAXB XmlAdapter class, instead of having to add the annotation
@XmlJavaTypeAdapter in each and every field you want to convert.
The following code converts every
BigDecimal field that is null or empty to
package-info.java file in the package that contains your JAXB POJO classes.