HHH-17695 Skip rendering null nested JSON aggregate embeddables
This commit is contained in:
parent
d865ec9e36
commit
46dffe3336
|
@ -70,13 +70,13 @@ public class JsonHelper {
|
|||
toString( attributeMapping.getMappedType(), values[i], options, appender );
|
||||
}
|
||||
else if ( attributeMapping instanceof EmbeddedAttributeMapping ) {
|
||||
if ( values[i] == null ) {
|
||||
// Skipping the update of the separator is on purpose
|
||||
continue;
|
||||
}
|
||||
final EmbeddableMappingType mappingType = (EmbeddableMappingType) attributeMapping.getMappedType();
|
||||
final SelectableMapping aggregateMapping = mappingType.getAggregateMapping();
|
||||
if ( aggregateMapping == null ) {
|
||||
if ( values[i] == null ) {
|
||||
// Skipping the update of the separator is on purpose
|
||||
continue;
|
||||
}
|
||||
toString(
|
||||
mappingType,
|
||||
options,
|
||||
|
|
Loading…
Reference in New Issue