1

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

vmaldosan
  • 444
  • 4
  • 14
MK-rou
  • 686
  • 2
  • 9
  • 30

1 Answers1

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