From 3c625ead057dd26a5d7d5050ae9d81bc0b48d819 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 7 Sep 2023 16:10:03 +0200 Subject: [PATCH] HHH-17159 java.lang.StackOverflowError during Update on Entity with Embeddable and JSON --- .../query/sqm/sql/AggregateColumnAssignmentHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/sql/AggregateColumnAssignmentHandler.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/sql/AggregateColumnAssignmentHandler.java index 1319e021b9..747b84fd54 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/sql/AggregateColumnAssignmentHandler.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/sql/AggregateColumnAssignmentHandler.java @@ -64,7 +64,7 @@ public class AggregateColumnAssignmentHandler { final EmbeddableMappingType embeddableMappingType = (EmbeddableMappingType) mappedType; final SelectableMapping aggregateMapping = embeddableMappingType.getAggregateMapping(); if ( aggregateMapping == null ) { - collectRootAggregates( rootAggregates, mappingType ); + collectRootAggregates( rootAggregates, embeddableMappingType ); } else { rootAggregates.put( aggregateMapping.getSelectablePath(), embeddableMappingType );