diff --git a/hibernate-core/src/main/java/org/hibernate/engine/spi/SessionFactoryDelegatingImpl.java b/hibernate-core/src/main/java/org/hibernate/engine/spi/SessionFactoryDelegatingImpl.java index 7101cf1b40..8a5499ab5c 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/spi/SessionFactoryDelegatingImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/spi/SessionFactoryDelegatingImpl.java @@ -305,7 +305,7 @@ public class SessionFactoryDelegatingImpl implements SessionFactoryImplementor, @Override public void registerNamedSQLQueryDefinition(String name, NamedSQLQueryDefinition definition) { - delegate.registerNamedQueryDefinition( name, definition ); + delegate.registerNamedSQLQueryDefinition( name, definition ); } @Override