I am a newbie in querydsl. I saw two types of querydsl implementations.
Is there any differnece? I already developed with com.mysema.query implementation. But I think I went wrong way. Please explain about this.
Querydsl is an extensive Java framework, which helps with creating and running type-safe queries in a domain specific language that is similar to SQL.
Querydsl is a framework that enables the construction of statically typed SQL-like queries through its fluent API. Spring Data modules offer integration with Querydsl through QuerydslPredicateExecutor .
Predicate is the common interface for Boolean typed expressions.
This tool generates the so called Q-types — classes that directly relate to the entity classes of your application, but are prefixed with letter Q. For instance, if you have a User class marked with the @Entity annotation in your application, then the generated Q-type will reside in a QUser. java source file.
com.querydsl
is the root package for Querydsl 4.* and com.mysema.query
is the root package for Querydsl 3.*.
The background is that Querydsl was initially owned by Mysema, but is now owned and mantained by the Querydsl team.
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