Bindy paddingChar

Friday, July 4, 2014

In my Bindy model I would like to set a paddingChar on one field. I saw in the documentation that with a @Fixed-length record I can add a paddingChar attribute but with a @CsvRecord it seems not to be the possible ?


This code doesn't pad field mandant with "0":



@CsvRecord(separator = ";", generateHeaderColumns=true)
public class Unity{

@DataField(pos = 1, length = 3, paddingChar = '0') String mandant;
...






http://ift.tt/1qu2h44