mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#580 - @Enumerated(EnumType.STRING) on Enum uses toString() rather than name()
This commit is contained in:
@@ -102,7 +102,7 @@ public class ScalarTypeEnumStandard {
|
||||
if (beanValue == null) {
|
||||
return null;
|
||||
}
|
||||
return beanValue.toString();
|
||||
return format(beanValue);
|
||||
}
|
||||
|
||||
public Object toBeanType(Object dbValue) {
|
||||
|
||||
Reference in New Issue
Block a user