spring-projects / spring-projects/spring-data-jpa

Allow fluent API to reuse existing named entity graphs

Open
#4,083 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Java
Stars
3.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Hi there,

the fluent API currently only has the ability to dynamically define an entity graph using the FetchableFluentQuery.project methods. It would be nice to be able to reuse existing named entity graphs (e.g. defined through the NamedEntityGraph annotation).

I don't know if this is the right project for the feature request, but since named entity graphs are a JPA feature, I thought this would be the right place.

Best Regards
Daniel

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing FetchableFluentQuery.project and the existing NamedEntityGraph annotation support in this repository. Define how the fluent API should select an existing named graph, then add focused coverage showing that the graph is reused when the query runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.