Skip to content

EntityGraph and QueryDSL not working together [DATAJPA-988] #1334

Open
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions