Cached values were being updated to their database-specific values (Enum -> String) rather than their intended values.

This commit is contained in:
Greg Burd 2017-11-01 14:24:03 -04:00
parent 857eadff45
commit 5905663c58

View file

@ -91,8 +91,8 @@ public final class UpdateOperation<E> extends AbstractFilterOperation<E, UpdateO
if (draft != null) {
String key = prop.getPropertyName();
if (draft.get(key, value.getClass()) != value) {
draft.set(key, value);
if (draft.get(key, value.getClass()) != v) {
draft.set(key, v);
}
}
@ -101,8 +101,8 @@ public final class UpdateOperation<E> extends AbstractFilterOperation<E, UpdateO
String key = prop.getPropertyName();
Map<String, Object> map = ((MapExportable) pojo).toMap();
if (!(map instanceof ValueProviderMap)) {
if (map.get(key) != value) {
map.put(key, value);
if (map.get(key) != v) {
map.put(key, v);
}
}
}