I have the mapping:
@Field(at = 123, length = 2, required = true)
private AccountStatus accountStatus;
And the Enum
public enum AccountStatus {
CURRENT("11"),
CLOSED("13"),
UNTIL_59_PASSED_DUE("71"),
UNTIL_89_PASSED_DUE("78"),
DELETE_FRAUD("DF"),
DELETE_ACCOUNT("DA");
public String value;
AccountStatus(String value) {
this.value = value;
}
}
For AccountStatus.CURRENT it is generating 'CU' and I want 11 instead. How to do that configuration?
try this:
format="toString"
to accountStatus @Field annotation.OR
handlerClass=....
to your field configuration (@Field annotation)