Selma doesn't map Enum to string
sebvelay opened this issue · 0 comments
sebvelay commented
Hello,
I notice Selma can't automatically map a String to an Enum or an Enum to a String. We have to create a CustomMapper to do something like that :
public String enumToString(MyEnum e) {
return e.toString();
}
public MyEnum stringToEnum(String s) {
return MyEnum.valueOf(s);
}
This is useless code, so I suggest to add this as a feature in Selma. I can try to do it, if someone can review PR.
BR