I would like to do a CSV normalization with the help of the Super-CSV-Dozer API.
I have a CSV file in the form of:
ObjectA_ID,ObjectA_Name,ObjectB_ID,ObjectB_Name
1,A_Name1,10,B_Name1
1,A_Name1,11,B_Name2
1,A_Name1,12,B_Name3
...
2,A_Name2,20,B_Name11
2,A_Name2,21,B_Name12
2,A_Name2,22,B_Name13
...
and after reading this file (for instance via CsvDozerBeanReader
) I want to have a normalized representation of this data in the form of beans like:
Class ObjectA {
private long id;
private String name;
private Collection objectBs;
...
}
Class ObjectB {
private long id;
private String name;
...
}
Is there a built-in possibility within Super-CSV-Dozer?