I have a bean Person
who has a List
of "memberOf". Now what I want is, to write one row of this bean per entry of "memberOf" (the project requires it). All my code is written into around beans but I have this issue. Eg:
public class Person {
@Parsed(field = "USR_USERID")
private String uid;
@Parsed(field = "USR_NSUNIQUEID")
private String nsUniqueID;
@Parsed(field = "GROUP_NAME")
List<String>isMemberOf;
//-- Getters and Setters...
}
Using the CsvWriterSettings and the BeanWriterProcessor what I get in the csv is something like:
"uid","nsuniqueId","[memberOf1, memberOf2...]"
But what I would like is:
"uid","nsuniqueId","memberOf1"
"uid","nsuniqueId","memberOf2"
Is there any way to do that while using the BeanWriterProcessor
?
Thanks