mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#496 - @EnumValue is being trimmed, may result in unexpected behaviour with CHAR columns for some database systems
This commit is contained in:
@@ -553,7 +553,7 @@ public final class DefaultTypeManager implements TypeManager, KnownImmutable {
|
||||
maxValueLen = Math.max(maxValueLen, value.length());
|
||||
|
||||
Object enumValue = Enum.valueOf(enumType, name.trim());
|
||||
beanDbMap.add(enumValue, value.trim());
|
||||
beanDbMap.add(enumValue, value);
|
||||
}
|
||||
|
||||
if (dbColumnLength == 0 && !integerType) {
|
||||
|
||||
Reference in New Issue
Block a user