Skip to content

Commit 2cc1e4b

Browse files
Jay Bryantschauder
authored andcommitted
DATACMNS-1816 - Wording changes.
Replace potentially insensitive language with more neutral language. Original pull request: #451.
1 parent 67f780b commit 2cc1e4b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/asciidoc/query-by-example.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Example<Person> example = Example.of(person); <3>
7272
<3> Create the `Example`.
7373
====
7474

75-
Example queries can be executed by using repositories.
75+
You can run the example queries by using repositories.
7676
To do so, let your repository interface extend `QueryByExampleExecutor<T>`.
7777
The following listing shows an excerpt from the `QueryByExampleExecutor` interface:
7878

src/main/asciidoc/repositories.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,9 @@ interface UserRepository extends Repository<User, Long> {
647647
}
648648
----
649649
<1> The repository resides in a package (or sub-package) for which we have defined non-null behavior.
650-
<2> Throws an `EmptyResultDataAccessException` when the query executed does not produce a result. Throws an `IllegalArgumentException` when the `emailAddress` handed to the method is `null`.
651-
<3> Returns `null` when the query executed does not produce a result. Also accepts `null` as the value for `emailAddress`.
652-
<4> Returns `Optional.empty()` when the query executed does not produce a result. Throws an `IllegalArgumentException` when the `emailAddress` handed to the method is `null`.
650+
<2> Throws an `EmptyResultDataAccessException` when the query does not produce a result. Throws an `IllegalArgumentException` when the `emailAddress` handed to the method is `null`.
651+
<3> Returns `null` when the query does not produce a result. Also accepts `null` as the value for `emailAddress`.
652+
<4> Returns `Optional.empty()` when the query does not produce a result. Throws an `IllegalArgumentException` when the `emailAddress` handed to the method is `null`.
653653
====
654654

655655
[[repositories.nullability.kotlin]]
@@ -670,8 +670,8 @@ interface UserRepository : Repository<User, String> {
670670
fun findByFirstname(firstname: String?): User? <2>
671671
}
672672
----
673-
<1> The method defines both the parameter and the result as non-nullable (the Kotlin default). The Kotlin compiler rejects method invocations that pass `null` to the method. If the query execution yields an empty result, an `EmptyResultDataAccessException` is thrown.
674-
<2> This method accepts `null` for the `firstname` parameter and returns `null` if the query execution does not produce a result.
673+
<1> The method defines both the parameter and the result as non-nullable (the Kotlin default). The Kotlin compiler rejects method invocations that pass `null` to the method. If the query yields an empty result, an `EmptyResultDataAccessException` is thrown.
674+
<2> This method accepts `null` for the `firstname` parameter and returns `null` if the query does not produce a result.
675675
====
676676

677677
[[repositories.query-streaming]]

0 commit comments

Comments
 (0)