Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The difference between com.mysema.query and com.querydsl?

Tags:

querydsl

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.

like image 420
verystrongjoe Avatar asked Sep 09 '15 02:09

verystrongjoe


People also ask

What is a Querydsl?

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.

What is Querydsl in spring?

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 .

What is predicate in Querydsl?

Predicate is the common interface for Boolean typed expressions.

What are Q classes in Java?

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.


1 Answers

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.

like image 130
Timo Westkämper Avatar answered Oct 22 '22 23:10

Timo Westkämper