I would like to counterpoint to using QueryDSL.
I do not like to use QueryDSL for the following reasons:
- You need to frequently compile the project to support updated
Q classes - You need to configure the IDE so that the
Q classes generated by target are treated like regular classes. - I already saw how the IDE "got lost" and no longer recognized
Q classes - I already created simple QueryDSL statements that generated really strange and unpredictable SQL .
Even being end-user friendly, I prefer to use JPQL because it is closer to the generated SQL and more predictable.
But compared to the criteria, I prefer QueryDSL.
source share