No MultipleBagFetchException is thrown when fetching two bags eagerly

Description

Assuming the following mapping:

When fetching the Post entity directly:

Hibernate generates the following SQL:

But if we try to execute an HQL query:

We get the expected exception which used to be thrown in Hibernate 4.x.

Environment

None

Status

Assignee

Gail Badner

Reporter

Vlad Mihalcea

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Critical
Configure