i want to write to a CSV file in spring batch writer, but i don't want to use the property names in my bean, i need a custom field name. is there another way to do it without using BeanWrapperFieldExtractor?
Here's my bean:
public class VMi {
private String Name;
private String OrgName;
private String Status;
private int CPU;
private int RAM;
private String IP;
}
i want to output the fields with the same names except for "OrgName" which i want it as "Organization->Name"
BeanWrapperFieldExtractorextracts values from fields based on getters and you can still use it in conjunction with aFlatFileHeaderCallbackwhere you write the custom field names in the header. - Mahmoud Ben Hassine