Browse Source

Refine Querydsl documentation.

See #4894
pull/4915/head
Mark Paluch 10 months ago
parent
commit
f13d826a69
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
  1. 9
      src/main/antora/modules/ROOT/pages/repositories/core-extensions.adoc

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

@ -22,7 +22,7 @@ It provides the following features:
* Adapts better to refactoring changes in domain types. * Adapts better to refactoring changes in domain types.
* Incremental query definition is easier. * Incremental query definition is easier.
See the http://www.querydsl.com/static/querydsl/latest/reference/html/[QueryDSL documentation] for how to bootstrap your environment for APT-based code generation using Maven or Ant. See the http://www.querydsl.com/static/querydsl/latest/reference/html/[Querydsl documentation] for how to bootstrap your environment for APT-based code generation using Maven or Ant.
QueryDSL lets you write queries such as the following: QueryDSL lets you write queries such as the following:
@ -50,7 +50,7 @@ Flux<Person> result = repository.findAll(person.address.zipCode.eq("C0123"));
====== ======
`QPerson` is a class that is generated by the Java annotation processor. `QPerson` is a class that is generated by the Java annotation processor.
See xref:#mongodb.repositories.queries.type-safe.apt[Setting up Annotation Processing] for how to setup Annotation Processing with your Build System. See xref:#mongodb.repositories.queries.type-safe.apt[Setting up Annotation Processing] for how to set up Annotation Processing with your Build System.
It is a `Predicate` that lets you write type-safe queries. It is a `Predicate` that lets you write type-safe queries.
Notice that there are no strings in the query other than the `C0123` value. Notice that there are no strings in the query other than the `C0123` value.
@ -160,6 +160,11 @@ Maven::
[source,xml,indent=0,subs="verbatim,quotes",role="primary"] [source,xml,indent=0,subs="verbatim,quotes",role="primary"]
---- ----
<dependencies> <dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.querydsl</groupId> <groupId>com.querydsl</groupId>
<artifactId>querydsl-mongodb</artifactId> <artifactId>querydsl-mongodb</artifactId>

Loading…
Cancel
Save