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

Ability for JPA entity-graphs to handle non-lazy attributes as lazy

Description

If a query uses an entity graph with the hint “javax.persistence.fetchgraph”, the provider should fetch only those attributes included in the entity graph (and id and version values). So attributes not included in the graph should stay unloaded, even if they are declared EAGER. Hibernate 4.3.0.CR2 does fetch those attributes.

Test case: https://github.com/dirkweil/jpa-entitygraph-test

Environment

None

Status

Assignee

Unassigned

Reporter

Dirk Weil

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.3.0.CR2

Priority

Major