OpenCSV: How to create CSV file from POJO with custom column headers and custom column positions?
I’ve had similar problem. AFAIK there is no build-in functionality in OpenCSV that will allow to write bean to CSV with custom column names and ordering. There are two main MappingStrategyies that are available in OpenCSV out of the box: HeaderColumnNameMappingStrategy: that allows to map CVS file columns to bean fields based on custom name; …