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

JPA entity native query not eagerly fetching associations as suggested by documentation.

Description

When using native queries, specifically Entity queries (not scalar), documentation suggests a way of handling many-to-one associations to avoid extra roundtrip to initializing them.
The Example 475 of documentation is reproduced in the test case and shows that the associations are not initialized and extra roundtrips are necessary.

Environment

Hibernate 5.2.10, H2 and Oracle 9ir2 databases

Status

Assignee

Vlad Mihalcea

Reporter

GustavoA

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.10

Priority

Major