In one of the projects, we are using Spring Data. Now that the queries are getting complex, we thought about adding Spring Data Specification or QueryDSL.
However, not sure about the best way forward. I think they both serve the same purpose. Is any one is recommended over the other?
Thanks
Spring Data specifications are a bit verbose compared to Querydsl
compared to this
If you are going to deal with complex queries you might want to pick Querydsl. I believe it will scale better as it is more compact.
This answer is biased, since I am the maintainer of Querydsl.