From 5d9414257f6687a7238d13da7531d46373a46dac Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Wed, 25 Jan 2017 19:58:53 +0100 Subject: [PATCH] Fix for HHH-10537 --- .../hql/internal/ast/tree/MapKeyEntityFromElement.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/MapKeyEntityFromElement.java b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/MapKeyEntityFromElement.java index bc8650cf8f..d6624c25c8 100644 --- a/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/MapKeyEntityFromElement.java +++ b/hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/MapKeyEntityFromElement.java @@ -83,7 +83,8 @@ public class MapKeyEntityFromElement extends FromElement { // todo : ever a time when INNER is appropriate? //JoinType.LEFT_OUTER_JOIN, // needs to be an inner join because of how JoinSequence/JoinFragment work - ugh - JoinType.INNER_JOIN, +// JoinType.INNER_JOIN, + collectionFromElement.getJoinSequence().getFirstJoin().getJoinType(), joinColumns ); join.setJoinSequence( joinSequence );