Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-1207

Apply fetch graph to queries from specifications.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:

      Description

      It should be possible to resolve the @EntityGraph or at least pass it on so that the hint get's correctly set in SimpleJpaRepository#getQuery(@Nullable Specification<T> spec, Pageable pageable).

      @EntityGraph(value = "basicPerson")
      Page<Person> findAll(Specification<Person> spec, Pageable pageable);
      
      @Entity
      @NamedEntityGraph(name = "basicPerson", attributeNodes = {
          @NamedAttributeNode("id"),
          @NamedAttributeNode("email")
      })
      

        Attachments

          Activity

            People

            • Assignee:
              schauder Jens Schauder
              Reporter:
              cstrobl Christoph Strobl
              Last updater:
              Jens Schauder
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: