Browse Source

Clarify QueryDSL usage in reference documentation.

Closes #4951
4.4.x
Mark Paluch 8 months ago
parent
commit
2d7f0831e9
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
  1. 5
      src/main/antora/modules/ROOT/pages/repositories/core-extensions.adoc

5
src/main/antora/modules/ROOT/pages/repositories/core-extensions.adoc

@ -169,7 +169,6 @@ Maven:: @@ -169,7 +169,6 @@ Maven::
<groupId>com.querydsl</groupId>
<artifactId>querydsl-mongodb</artifactId>
<version>${querydslVersion}</version>
<classifier>jakarta</classifier>
<!-- Recommended: Exclude the mongo-java-driver to avoid version conflicts -->
<exclusions>
@ -216,7 +215,7 @@ Gradle:: @@ -216,7 +215,7 @@ Gradle::
[source,groovy,indent=0,subs="verbatim,quotes",role="secondary"]
----
dependencies {
implementation 'com.querydsl:querydsl-mongodb:${querydslVersion}:jakarta'
implementation 'com.querydsl:querydsl-mongodb:${querydslVersion}'
annotationProcessor 'com.querydsl:querydsl-apt:${querydslVersion}:jakarta'
annotationProcessor 'org.springframework.data:spring-data-mongodb'
@ -235,6 +234,8 @@ tasks.withType(JavaCompile).configureEach { @@ -235,6 +234,8 @@ tasks.withType(JavaCompile).configureEach {
======
Note that the setup above shows the simplest usage omitting any other options or dependencies that your project might require.
This way of configuring annotation processing disables Java's annotation processor scanning because MongoDB requires specifying `-processor` by class name.
If you're using other annotation processors, you need to add them to the list of `-processor`/`annotationProcessors` as well.
include::{commons}@data-commons::page$repositories/core-extensions-web.adoc[leveloffset=1]

Loading…
Cancel
Save