refference.
Here I want to get the child of the parent and their children. This is my screen.
In this window I want to save all the lines. For this, I created a beans file.
public class AdminComponentBean{
List<MultiAdminComponent> componentListbean;
}
Another Bean: -
public class MultiAdminComponent {
private String componentName;
private String componentIdentification;
private String componentType;
private String componentState;
private String componentUrl;
private String rowId;
private List<MultiAdminComponent> items;
}
In my service, I am trying to restore all children. But I can not get the children of the parent.
List < MultiAdminComponent > adminComponentList = adminComponentBean.getComponentListbean();
for (MultiAdminComponent adminComponentListBean: adminComponentList) {
flag = BaseDAO.getAdminComponentDAOObject().saveParentComponentDetails(adminComponentListBean);
for (MultiAdminComponent adminComponentchild: adminComponentListBean.getItems()) {
}
}
source
share