The popular choice for SQL persistence with a focus on CRUD and simple queries for object loading. more...
The alternative SQL abstraction with a focus on SQL operations and the full expressivity of the SQL standard. more...
ODM support via Morphia or Spring Data for MongoDB, the NoSQL of choice for many. more...
Version selection
The downloads bundles are meant to be used if other build systems than Maven are used, such as Ant. All Querydsl releases are available via the public Maven repositories.
Documentation is also available in the form of blog posts.
List<Person> persons = queryFactory.selectFrom(person) .where( person.firstName.eq("John"), person.lastName.eq("Doe")) .fetch();
List<Person> persons = queryFactory.selectFrom(person) .orderBy(person.lastName.asc(), person.firstName.desc()) .fetch();
List<Person> persons = queryFactory.selectFrom(person) .where(person.children.size().eq( JPAExpressions.select(parent.children.size().max()) .from(parent))) .fetch();
List<Tuple> tuples = queryFactory.select( person.lastName, person.firstName, person.yearOfBirth) .from(person) .fetch();