HHH-17159 java.lang.StackOverflowError during Update on Entity with Embeddable and JSON

This commit is contained in:
Andrea Boriero 2023-09-07 16:10:03 +02:00 committed by Andrea Boriero
parent a27481a2b3
commit 3c625ead05

View File

@ -64,7 +64,7 @@ private static void collectRootAggregates(
final EmbeddableMappingType embeddableMappingType = (EmbeddableMappingType) mappedType; final EmbeddableMappingType embeddableMappingType = (EmbeddableMappingType) mappedType;
final SelectableMapping aggregateMapping = embeddableMappingType.getAggregateMapping(); final SelectableMapping aggregateMapping = embeddableMappingType.getAggregateMapping();
if ( aggregateMapping == null ) { if ( aggregateMapping == null ) {
collectRootAggregates( rootAggregates, mappingType ); collectRootAggregates( rootAggregates, embeddableMappingType );
} }
else { else {
rootAggregates.put( aggregateMapping.getSelectablePath(), embeddableMappingType ); rootAggregates.put( aggregateMapping.getSelectablePath(), embeddableMappingType );