Cached values were being updated to their database-specific values (Enum -> String) rather than their intended values.
This commit is contained in:
parent
857eadff45
commit
5905663c58
1 changed files with 4 additions and 4 deletions
|
@ -91,8 +91,8 @@ public final class UpdateOperation<E> extends AbstractFilterOperation<E, UpdateO
|
||||||
|
|
||||||
if (draft != null) {
|
if (draft != null) {
|
||||||
String key = prop.getPropertyName();
|
String key = prop.getPropertyName();
|
||||||
if (draft.get(key, value.getClass()) != value) {
|
if (draft.get(key, value.getClass()) != v) {
|
||||||
draft.set(key, value);
|
draft.set(key, v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,8 +101,8 @@ public final class UpdateOperation<E> extends AbstractFilterOperation<E, UpdateO
|
||||||
String key = prop.getPropertyName();
|
String key = prop.getPropertyName();
|
||||||
Map<String, Object> map = ((MapExportable) pojo).toMap();
|
Map<String, Object> map = ((MapExportable) pojo).toMap();
|
||||||
if (!(map instanceof ValueProviderMap)) {
|
if (!(map instanceof ValueProviderMap)) {
|
||||||
if (map.get(key) != value) {
|
if (map.get(key) != v) {
|
||||||
map.put(key, value);
|
map.put(key, v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue