I am trying to use the following method while using com.mysema.query package.
QueryDslRepositorySupport.getQuerydsl().applyPagination(pageable, query);
However, When I pass com.mysema.query.jpa.JPQLQuery object to the method, it complains that it needs com.querydsl.jpa.JPQLQuery object.
Why does it do that? I am not using com.querydsl package in my project. And so, it should be able to work fine with com.mysema.query package and ideally the query parameter should be an object of type com.mysema.query.jpa.JPQLQuery
- What can I do without changing my package in the project?
Or is it advisable to use both the packages in a springboot project?
What really is the difference between these two other than the ownership of the packages by Mysema and Querydsl?
Another issue I am facing after moving from com.mysema.querydsl to com.querydsl - This method gives me a compile time error -
jpaQuery.from(qClass1, qClass2, qClass3)
My Qclasses are of EntityPathBase type, where as the from() method of com.querydsl.JPAQuery expects EntityPath classes.
I regenerated my QClasses with the following plugin but the QClasses still extend EntityPathBase, and not EntityPath (an interface)
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.1.3</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/java</outputDirectory>
<processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
</execution>
</executions>
</plugin>