java.util.Set , java.util.List and other Collection interfaces are not serializable. Require a simple, direct solution to use this in a serializable POJO.
public class Employee implements Serializable{
private int id;
private String name;
private Set<Address> address= new HashSet<Address>;
}
HashSet is serializable [Documentation] as long as all the objects it contains are serializable, so you need to make sure that
Address
class is serializable.