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

This commit is contained in:
Robin Bygrave committed 2016-03-01 17:35:55 +13:00
1 parent 0a60cd4e58
commit ad596a2043
3 files changed
+29 -7

No files matched your search

@@ -102,7 +102,7 @@ public class ScalarTypeEnumStandard {
if (beanValue == null) {
return null;
}
return beanValue.toString();
return format(beanValue);
}
public Object toBeanType(Object dbValue) {