## Querydsl SQL The SQL module provides integration with the JDBC API. **Maven integration** Add the following dependencies to your Maven project : com.mysema.querydsl querydsl-sql ${querydsl.version} org.slf4j slf4j-log4j12 1.6.1 **Code generation via Maven** This functionality is also available as a Maven plugin. The presented example can be declared like this in the POM : com.mysema.querydsl querydsl-maven-plugin ${querydsl.version} export org.apache.derby.jdbc.EmbeddedDriver jdbc:derby:target/demoDB;create=true com.myproject.domain ${project.basedir}/target/generated-sources/java org.apache.derby derby ${derby.version} Use the goal test-export to add the targetFolder as a test compile source root instead of a compile source root. **Querying** Querying with Querydsl SQL is as simple as this : QCustomer customer = new QCustomer("c"); SQLTemplates dialect = new HSQLDBTemplates(); // SQL-dialect SQLQuery query = new SQLQuery(connection, dialect); List lastNames = query.from(customer) .where(customer.firstName.eq("Bob")) .list(customer.lastName); For more information on the Querydsl SQL module visit the reference documentation http://www.querydsl.com/static/querydsl/latest/reference/html/ch02s03.html