Fetch join is ignored

Description

If you add a fetch join for a singular atttibute after a regular join with the same path, the fetch join will be ignored.

This query will fail, because the fetch join for 'm2' is not added to the sql query select clause.

You can fix this by adding the following code to the method 'org.hibernate.hql.internal.ast.tree.DotNode.dereferenceEntityJoin(...)' at line 516:

Environment

None

Status

Assignee

Gail Badner

Reporter

Raimar Brauch

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure