1. Domino Jackson
  2. Inheritance

Inheritance

Domino jackson support supports the serialization and deserialization of the super classes fields :

			public abstract class BasePojo {

    private int id;
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
		
			@JSONMapper
public class ChildPojo extends BasePojo {

    private String address;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
		

The fields id and name from the super class will be included in the serialization and deserialization of the children classes, and the inheritance tree can be as deep as needed.

We are a group of passionate people who love what we do

Donate & Support Us