I am new to JPA, JPQL, Hibernate, Querydsl and now I saw that in my project is used Querydsl for querying and I am wondering why this approach has been chosen. So you can be for sure why exactly is in my project but you can tell why and in what situations Querydsl is preferred. Why we can use simple JPQL statements?
I would like to make a counterpoint to the QueryDSL usage.
I don't like to use QueryDSL for the follow reasons:
Q
classes updatedQ
classes generated on target
as normal classes.Q
classesEven being friendly for final users, I prefer to use JPQL because it's more closer to the generated SQL and more predictable.
But compared to Criteria, I prefer QueryDSL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With