mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +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:
@@ -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