Closed
Description
Hi,
I tried to follow these instructions https://docs.spring.io/spring-graphql/reference/data.html#data.querydsl.build but even with querydsl 5.1.0 I had no success. I think I would have to go back to javax.persistence.Entity
(and other javax stuff) but that feels wrong with Spring Boot 3.4.0.
With
mvn clean compile -X -Dprocessor=com.querydsl.apt.jpa.JPAAnnotationProcessor
and
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<source>21</source>
<target>21</target>
<annotationProcessorPaths>
<path>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<version>5.1.0</version>
</path>
</annotationProcessorPaths>
<generatedSourcesDirectory>${project.build.directory}/generated-sources/annotations
</generatedSourcesDirectory>
<compilerArgs>
<arg>-proc:only</arg>
</compilerArgs>
</configuration>
</plugin>
I'm warned that
[WARNING] Annotation processing without compilation requested but no processors were found.
Ultimately, no Q...
classes are generated. Let me know if I'm doing something wrong, but the Spring Boot version 3.4 with its graphql-starter doesn't work with repository that extends QuerydslPredicateExecutor
.