## Querydsl Collections The Collections module provides integration with Java Collections and Beans. **Maven integration** Add the following dependencies to your Maven project : ```XML com.querydsl querydsl-apt ${querydsl.version} provided com.querydsl querydsl-collections ${querydsl.version} ``` If you are not using JPA or JDO you can generate Querydsl query types for your domain types by annotating them with the com.querydsl.core.annotations.QueryEntity annotation and adding the following plugin configuration into your Maven configuration (pom.xml) : ```XML ... com.mysema.maven apt-maven-plugin 1.1.3 process target/generated-sources/java com.querydsl.apt.QuerydslAnnotationProcessor ... ``` **Querying** Querying with Querydsl Collections is as simple as this : ```JAVA import static com.querydsl.collections.CollQueryFactory.*; QCat cat = new QCat("cat"); for (String name : from(cat,cats) .select(cat.name) .where(cat.kittens.size().gt(0)) .fetch()){ System.out.println(name); } ``` For more information on the Querydsl Collections module visit the reference documentation http://www.querydsl.com/static/querydsl/latest/reference/html/ch02s08.html