I have a scenario where i have to persist an object called DummyObject which has list of OtherObject.
public class DummyObject{
private List<OtherObject> firstOtherObjectList;
private List<OtherObject> secondOtherObjectList;
private String id;
private boolean isCustomer;
private String voiceStatus;
}
public Class OtherObject{
private String custId;
private String custName;
private String custDepartment;
}
I have posted some dummy classes. In the scenario like above, can i use ItemPreparedStatementSetter or ItemWriter or is there some other spring provided interface that i can use to persist the Dummy Object with list of OtherObject. Which is the best way and how can i implement the above scenario?