I have a spring batch program which reads a file and saved into DB. The contents of the file go into different tables. And is saved using Spring Data JPA.
public class Pojo{
private AnotherObject sCode;
private String aName;
private String aCode;
}
public class AnotherObject{
private String cName;
private String cCode;
}
{"aName","aCode","cName","cCode"}
How do I write 2 different FieldSetMapper and get this functionality or is there any other way