Using SuperCSV with Dozer (version 2.2.0), I've been able to successfully map data into a List
. However, I now have a case where I want to map into a List
of List
s. In the object I'm trying to map to, I have a field that looks something like this:
List<List<String>> myListOfLists;
For my field mapping I did this:
"myListOfLists[0][0]", "myListOfLists[0][1]", "myListOfLists[1][0]", etc.
However, this results in the following error:
org.dozer.MappingException: No read or write method found for field (myListOfLists[0]) in class (class com.foo.MyClassBeingMappedTo)
I can't seem to find any examples of nested collections, but it seems like this should be possible. Is there a way I can map the data into my List<List<String>>
field?