I am using OpenCSV BeanToCsv to dump a list of beans to a csv file. Everything is working however it creates the column names from the field names in the bean I am using. How do I change the column names that get created in the csv?
Example Column Mapping:
String[] columns = new String[] { "projectId", "patientFirstName", "patientLastName"};
//But I actually want the column for projectId to be "PROJECT_ID" in the
//.csv file and patientFirstName to be "PATIENT_FIRST_NAME".
There has to be some obvious easy way to do this but I just don't see it. How do I accomplish this?