From fcabfa400a339ac08a8b764f3324b0cf5462d6ca Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Mon, 27 Jun 2022 11:25:01 +0200 Subject: [PATCH] HHH-15358 @Where annotation with globally_quoted_identifiers causes Unable to determine TableReference Exception --- .../org/hibernate/persister/entity/AbstractEntityPersister.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java index 7db926f5b9..bb2579eec8 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java @@ -806,7 +806,7 @@ public abstract class AbstractEntityPersister } containingClass = superclass; } - this.sqlWhereStringTableExpression = containingClass.getTable().getName(); + this.sqlWhereStringTableExpression = determineTableName( containingClass.getTable() ); sqlWhereStringTemplate = Template.renderWhereStringTemplate( "(" + bootDescriptor.getWhere() + ")", dialect,