From 87ae48a58a936286839396111ee2b9873bd85d69 Mon Sep 17 00:00:00 2001 From: Cedomir Igaly Date: Mon, 29 May 2023 12:06:30 +0200 Subject: [PATCH] HHH-16612 Use qualified table name for embeddable mappings --- .../metamodel/mapping/internal/EmbeddableMappingTypeImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddableMappingTypeImpl.java b/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddableMappingTypeImpl.java index bbf7791418..7ac22d6d7c 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddableMappingTypeImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddableMappingTypeImpl.java @@ -183,7 +183,7 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme updatable = componentProperty.isUpdateable(); } this.aggregateMapping = SelectableMappingImpl.from( - bootDescriptor.getOwner().getTable().getName(), + bootDescriptor.getOwner().getTable().getQualifiedName( creationContext.getSqlStringGenerationContext() ), aggregateColumn, bootDescriptor.getParentAggregateColumn() != null ? bootDescriptor.getParentAggregateColumn().getSelectablePath()