SessionFactoryDelegatingImpl.registerNamedSQLQueryDefinition call wrong delegate method

Description

When i use SessionFactoryDelegatingImpl i found bug:

and

Link in the code:
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/engine/spi/SessionFactoryDelegatingImpl.java

Method registerNamedSQLQueryDefinition of the class SessionFactoryDelegatingImpl call delegate.registerNamedQueryDefinition, not registerNamedSQLQueryDefinition.
I can override this behavior, but this behavior seems to be wrong.

Environment

WildFly 10.1.0.Final
hibernate-core-5.0.10.Final

Activity

Show:
Gail Badner
October 21, 2016, 8:43 PM

I'm not backporting because:

  • org.hibernate.engine.spi.SessionFactoryDelegatingImpl is not used by Hibernate;

  • org/hibernate/engine/spi/SessionFactoryDelegatingImpl is not documented;

  • bug is easy to override.

Gail Badner
October 21, 2016, 8:44 PM

Fixed in master.

Assignee

Andrea Boriero

Reporter

Роджер Весёлый

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure