Closed marceloverdijk closed 7 years ago
Good idea indeed.
Could you make a PR for this?
Hi @reda-alaoui I'm not requiring this JpaEntityGraphQueryByExampleExecutor
currently but I think this might be useful to be included in the lib.
Ok no problem
In fact, JpaEntityGraphRepository
is already a QueryByExampleExecutor
.
And all QueryByExampleExecutor
methods completed with EntityGraphs are available in JpaEntityGraphRepository
.
Maybe you want a repository interface that would only expose QueryByExampleExecutor
methods?
More globally, I think that a good enhancement would be to split JpaEntityGraphRepository
into new EntityGraph repositories for:
CrudRepository
PagingAndSortingRepository
QueryByExampleExecutor
This would let people take the smallest needed interface, like you did with org.springframework.data.repository.Repository
.
Well done!
Spring Data JPA
1.11.x
includes aQueryByExampleExecutor
(part of Spring Data Commons >=1.12
).It would be nice to have a
JpaEntityGraphQueryByExampleExecutor
to support providing the entity graph.