From 2e28afb4c76cce8408057683138b59d0b7d21750 Mon Sep 17 00:00:00 2001 From: Gemini Kim Date: Mon, 19 Mar 2018 19:39:21 +0900 Subject: [PATCH] DATACMNS-1280 - Fixed letter-casing in documentation of Querydsl Extension. Original pull request: #279. --- src/main/asciidoc/repositories.adoc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/asciidoc/repositories.adoc b/src/main/asciidoc/repositories.adoc index 413e50510..f4d3497ae 100644 --- a/src/main/asciidoc/repositories.adoc +++ b/src/main/asciidoc/repositories.adoc @@ -968,13 +968,13 @@ This section documents a set of Spring Data extensions that enable Spring Data u http://www.querydsl.com/[Querydsl] is a framework which enables the construction of statically typed SQL-like queries via its fluent API. -Several Spring Data modules offer integration with Querydsl via `QueryDslPredicateExecutor`. +Several Spring Data modules offer integration with Querydsl via `QuerydslPredicateExecutor`. -.QueryDslPredicateExecutor interface +.QuerydslPredicateExecutor interface ==== [source, java] ---- -public interface QueryDslPredicateExecutor { +public interface QuerydslPredicateExecutor { Optional findById(Predicate predicate); <1> @@ -993,13 +993,13 @@ public interface QueryDslPredicateExecutor { <4> Returns if an entity that matches the `Predicate` exists. ==== -To make use of Querydsl support simply extend `QueryDslPredicateExecutor` on your repository interface. +To make use of Querydsl support simply extend `QuerydslPredicateExecutor` on your repository interface. .Querydsl integration on repositories ==== [source, java] ---- -interface UserRepository extends CrudRepository, QueryDslPredicateExecutor { +interface UserRepository extends CrudRepository, QuerydslPredicateExecutor { } ---- @@ -1254,7 +1254,7 @@ using the `QuerydslPredicateArgumentResolver`. NOTE: The feature will be automatically enabled along `@EnableSpringDataWebSupport` when Querydsl is found on the classpath. -Adding a `@QuerydslPredicate` to the method signature will provide a ready to use `Predicate` which can be executed via the `QueryDslPredicateExecutor`. +Adding a `@QuerydslPredicate` to the method signature will provide a ready to use `Predicate` which can be executed via the `QuerydslPredicateExecutor`. TIP: Type information is typically resolved from the methods return type. Since those information does not necessarily match the domain type it might be a good idea to use the `root` attribute of `QuerydslPredicate`. @@ -1291,7 +1291,7 @@ Those bindings can be customized via the `bindings` attribute of `@QuerydslPredi [source,java] ---- interface UserRepository extends CrudRepository, - QueryDslPredicateExecutor, <1> + QuerydslPredicateExecutor, <1> QuerydslBinderCustomizer { <2> @Override @@ -1304,7 +1304,7 @@ interface UserRepository extends CrudRepository, } } ---- -<1> `QueryDslPredicateExecutor` provides access to specific finder methods for `Predicate`. +<1> `QuerydslPredicateExecutor` provides access to specific finder methods for `Predicate`. <2> `QuerydslBinderCustomizer` defined on the repository interface will be automatically picked up and shortcuts `@QuerydslPredicate(bindings=...)`. <3> Define the binding for the `username` property to be a simple contains binding. <4> Define the default binding for `String` properties to be a case insensitive contains match.