EntityGraph and QueryDSL not working together [DATAJPA-988]
@odrotbohm is already working on this.
Since Dec 30, 2020.
Assessment
This issue has not been assessed yet.
Description
Miguel Cardoso opened DATAJPA-988 and commented
If you use a repository that extends QueryDslPredicateExecutor and then try to use a method with a @EntityGraph annotation Spring Data will fail to perform the query since it seems to be ignoring the @EntityGraph annotation so it won't join the entities referred on it.
There is a thread at SO with a good example of the problem and a potential fix, but this involves using custom repositories and removing the @EntityGraph annotation:
http://stackoverflow.com/questions/27494988
I think this is an important bug since it will require a lot of boilerplate code to be written for something that should be trivial otherwise (ie using a simple @EntityGraph annotation).
Affects: 1.10.4 (Hopper SR4)
Reference URL: http://stackoverflow.com/questions/27494988
1 votes, 2 watchers
- Dominant language
- Java
- Stars
- 3.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from spring-projects/spring-data-jpa
-
type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spring-projects/spring-data-jpa#2648 · 3 comments ·
-
status: waiting-for-triage
Difficulty 3/5 1-2 days Newbie friendliness 76/100
spring-projects/spring-data-jpa#4359 ·
-
status: waiting-for-triage
Difficulty 4/5 3-5 days Newbie friendliness 55/100
spring-projects/spring-data-jpa#4341 ·
-
status: waiting-for-triage
Difficulty 3/5 1-2 days Newbie friendliness 68/100
spring-projects/spring-data-jpa#4338 ·
-
status: waiting-for-triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
spring-projects/spring-data-jpa#4332 ·
All issues in spring-projects/spring-data-jpa
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spring-projects/spring-modulith#1895 ·