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,