We're updating the issue view to help you get more done. 

SessionFactoryHelper#findEntityPersisterByName unnecessarily tries to find entity persisters via a method that causes MappingExceptions

Description

The use of MetamodelImplementor#entityPersister(java.lang.String) in SessionFactoryHelper#findEntityPersisterByName unnecessarily causes many exceptions for every query compilation. It can easily be replaced by using MetamodelImplementor#entityPersisters and acting on a null return.

Environment

None

Status

Assignee

Christian Beikov

Reporter

Christian Beikov

Fix versions

Labels

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

5.3.0.Beta2
5.2.16

Priority

Major