JAXB and constructors
JAXB can support this case using an XML Adapter. Consider you have the following object with no zero-arg constructor: package blog.immutable; public class Customer { private final String name; private final Address address; public Customer(String name, Address address) { this.name = name; this.address = address; } public String getName() { return name; } public Address … Read more