import java.util.List; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Nitin */ public class BeanFirst { private Integer id; private String name; private List<BeanSecond> lst; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public List<BeanSecond> getLst() { return lst; } public void setLst(List<BeanSecond> lst) { this.lst = lst; } public BeanFirst(Integer id, String name, List<BeanSecond> lst) { this.id = id; this.name = name; this.lst = lst; } public String getName() { return name; } public void setName(String name) { this.name = name; } }