Handling of blank values and values from multiple fields.

15 views
Skip to first unread message

Peter Chen

unread,
Sep 4, 2020, 7:46:31 PM9/4/20
to SimpleFlatMapper
Hi,

Very new to sfm and looking to use it in project.

Had below questions.

First, how does sfm handle blank values when mapping. Is it possible to ignore blank values from being set for all fields. Blank as in empty string in the CSV file.

Second, is it possible to map two columns to a single property. E.g. propertyOne and properyOneMV. PropertyOne is set if there a single value. propertyOneMV is a comma separated list and should be converted to a list before setting the Pojo. The pojo has a list field called propertyOne.

Thanks,

Peter Chen

unread,
Sep 6, 2020, 11:10:08 PM9/6/20
to SimpleFlatMapper
Never mind, was able to work it out.
Reply all
Reply to author
Forward
0 new messages