New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow @EntityGraph on a method inherited from JpaRepository [DATAJPA-612] #997
Comments
Thomas Darimont commented Thanks for reporting that! :) The problem is (IMHO) that This leads to the fact that the overridden method gets enlisted in the "queryMethods" within This triggers the configured |
Oliver Drotbohm commented Looks decent to me, minor comments in the PR |
Oliver Drotbohm commented Applied with a few minor changes:
|
Michael Simons commented Hello, i'd expect that to work also on findOne, but that's not the case as findOne is handle separately by SimpleJpaRepository. The entity manager should support EntityGraphs in the hints for find as well. Any chance of getting this? Kind Regards and thank for your work, |
Oliver Drotbohm commented Hm, |
Michael Simons commented Not at all… |
Thomas Darimont commented I created DATAJPA-689 to track this - I already have a fix for that |
Hans Desmet opened DATAJPA-612 and commented
In the following interface, i try to apply
@EntityGraph
on the method findAll, which I inherit from JpaRepository:When I start the application, I get a PropertyReferenceException:
No property findAll found for type Customer!
It would be convenient that Spring Data would apply the
@EntityGraph
instead of this exception, like Spring Data already applies@Query
:Affects: 1.7 GA (Evans)
Issue Links:
@EntityGraph
on findOne method of CrudRepositoryReferenced from: pull request #109
Backported to: 1.7.1 (Evans SR1)
The text was updated successfully, but these errors were encountered: