Entity graph cannot be applied to child class

Description

The following code snippet has obvious and serious bug (org.hibernate.graph.internal.RootGraphImpl):

The method will only return true when the entity graph is applied to the specified entity. The while block always returns false. The fix is obvious though. Simply replace entityType in Line#9 with this.getGraphedType().

Environment

None

Assignee

Nathan Xu

Reporter

Nathan Xu

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure