mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
Fix when json/jackson bean inserted as null and not changed
Expectation is that it is not included in update (still null, no change)
This commit is contained in:
1 parent
ea741d0169
commit
ca1636ff9e
2 files changed
+28
No files matched your search
@@ -57,6 +57,9 @@ public class BeanPropertyJsonMapper extends BeanProperty {
|
||||
final String json = scalarType.format(value);
|
||||
final MutableValueInfo oldHash = ebi.mutableInfo(propertyIndex);
|
||||
if (oldHash == null) {
|
||||
if (value == null) {
|
||||
return false; // no change, still null
|
||||
}
|
||||
ebi.mutableNext(propertyIndex, next(json));
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user