Some online examples of using Mysema Querydsl rely on the JPAQuery#list() method, for example. https://stackoverflow.com/a/16626832/how-to-setup-statement-android-statement-in-javascript/2326135#5116193 It is also mentioned in official documentation .
However, I do not see this method in the JPAQuery class. It does not appear in the IDE autocomplete and is not present in the JAR file downloaded by Maven.
I added these dependencies to my Maven project:
<dependency> <groupId>com.querydsl</groupId> <artifactId>querydsl-apt</artifactId> <version>4.0.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.querydsl</groupId> <artifactId>querydsl-jpa</artifactId> <version>4.0.4</version> </dependency>
Why is the JPAQuery#list() method missing?
source share