Skip to content

Consider EntityGraph argument for query methods #4175

@mp911de

Description

@mp911de

It would be neat to provide an entity graph to a query method through a Spring Data JPA type allowing:

  • Declaration through typed property paths (e.g. EntityGraphHint.fetch(Person::getFirstName, Person::getAddress, …))
  • From a named entity graph reference (EntityGraphHint.fetch("my-named-graph"), EntityGraphHint.load("my-named-graph"))
  • From a EntityGraph object (EntityGraphHint.fetch(obj), EntityGraphHint.load(obj))

Within this ticket, we should also consider the following changes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions