#496 - @EnumValue is being trimmed, may result in unexpected behaviour with CHAR columns for some database systems

This commit is contained in:
Robin Bygrave committed 2015-12-14 17:21:01 +13:00
1 parent 78df595861
commit 5cd21de174
3 files changed
+77 -12

No files matched your search

@@ -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) {