mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#585 - Refactor of ScalarType jsonWrite() method such that it only takes JsonGenerator - part 2, use JsonGenerator
This commit is contained in:
1 parent
fc96685ed0
commit
a4f0e3936a
38 files changed
+115
-110
No files matched your search
@@ -1244,7 +1244,7 @@ public class BeanProperty implements ElPropertyValue, Property {
|
||||
} else {
|
||||
if (scalarType != null) {
|
||||
writeJson.writeFieldName(name);
|
||||
scalarType.jsonWrite(writeJson, value);
|
||||
scalarType.jsonWrite(writeJson.gen(), value);
|
||||
} else {
|
||||
writeJson.writeValueUsingObjectMapper(name, value);
|
||||
}
|
||||
|
||||
@@ -155,6 +155,7 @@ public class BeanPropertyCompound extends BeanProperty {
|
||||
if (value == null) {
|
||||
ctx.writeNullField(name);
|
||||
} else {
|
||||
ctx.writeFieldName(name);
|
||||
compoundType.jsonWrite(ctx, value, name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user