#580 - @Enumerated(EnumType.STRING) on Enum uses toString() rather than name()

This commit is contained in:
Robin Bygrave
2016-03-01 17:35:55 +13:00
parent 0a60cd4e58
commit ad596a2043
3 changed files with 29 additions and 7 deletions
@@ -102,7 +102,7 @@ public class ScalarTypeEnumStandard {
if (beanValue == null) {
return null;
}
return beanValue.toString();
return format(beanValue);
}
public Object toBeanType(Object dbValue) {