DescriptionQuerydsl is a framework which enables the construction of type-safe SQL-like queries for multiple backends including JPA, JDO and SQL. Instead of writing queries as inline strings or externalizing them into XML files they are constructed via a fluent API. The benefits of using a fluent API in comparison to simple strings are
Modules
Supported backendsJPA / Hibernate
JDO
Java Collections
SQL
RDFLucene
Hibernate Search
Go to Documentation for Javadocs and the Reference Documentation and go to Examples to see examples. |
In a nutshell
Querydsl users talking"If you are using JPA and want to write typesafe queries in an IDE, then stop using the JPA 2.0 Criteria API and start using Querydsl. Today." "So, here is my tip to anyone thinking about using a Criteria API: Give Querydsl a try! By the way, did I mention that it can also be used with JDO, Lucene, JDBC and even plain collections? " Luis Fernando Planella Gonzalez "Querydsl rocks! It's the best thing since sliced bread for data access in Java." "Using querydsl you keep the reference to your HibernateQuery object and you can apply as many joins, wheres etc as you can, in any order, so that you can get a totally mutable hql query without ugly string concatenation. " "Querydsl has been easy to get running, and easy to write compact and readable queries in. Integration in an existing project has been as painless as it could be, and we have had almost no problems." Got issues with Querydsl? |