Is there a good design pattern that allows a single interface to combine the methods of Spring Data and Query DSL so that the query dsl methods are declared in a separated class and all that without having to deal directly with the EntityManager. Thanks
Asked
Active
Viewed 877 times
1
-
1May be my answer will be helpful: https://stackoverflow.com/a/48596145 – Cepr0 Apr 11 '18 at 10:36
1 Answers
0
The best design pattern that I found is this one : JpaRepository & Query DSL Combination
It consist in two interfaces : the first one extends jpaRepository and the second interface, plus the implementation of this last one who extends QueryDslRepositorySupport.

MK-rou
- 686
- 2
- 9
- 30