diff --git a/querydsl-jdo/README.md b/querydsl-jdo/README.md index 850975c47..bfd46dcea 100644 --- a/querydsl-jdo/README.md +++ b/querydsl-jdo/README.md @@ -6,24 +6,26 @@ The JDO module provides integration with the JDO API. Add the following dependencies to your Maven project : - - com.mysema.querydsl - querydsl-apt - ${querydsl.version} - provided - - - - com.mysema.querydsl - querydsl-jdo - ${querydsl.version} - +```XML + + com.mysema.querydsl + querydsl-apt + ${querydsl.version} + provided + - - org.slf4j - slf4j-log4j12 - 1.6.1 - + + com.mysema.querydsl + querydsl-jdo + ${querydsl.version} + + + + org.slf4j + slf4j-log4j12 + 1.6.1 + +``` And now, configure the Maven APT plugin which generates the query types used by Querydsl : @@ -66,11 +68,13 @@ Now you are able to construct JDOQL query instances and instances of the query d Querying with Querydsl JDO is as simple as this : - QCustomer customer = QCustomer.customer; - JDOQuery query = new JDOQuery(pm); - Customer bob = query.from(customer) - .where(customer.firstName.eq("Bob")) - .uniqueResult(customer); - query.close(); +```JAVA +QCustomer customer = QCustomer.customer; +JDOQuery query = new JDOQuery(pm); +Customer bob = query.from(customer) + .where(customer.firstName.eq("Bob")) + .uniqueResult(customer); +query.close(); +``` For more information on the Querydsl JDO module visit the reference documentation http://www.querydsl.com/static/querydsl/latest/reference/html/ch02s02.html