Uploaded image for project: 'Hibernate ORM'
  1. HHH-8776

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

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.3.0.CR2
    • Fix Version/s: None
    • Labels:
      None
    • Last commented by a user?:
      true

      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

        Attachments

          Issue links

            Activity

              People

              • Votes:
                25 Vote for this issue
                Watchers:
                26 Start watching this issue

                Dates

                • Created:
                  Updated: