Skip to content

Commit 0d40e21

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

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
@@ -649,9 +649,9 @@ interface UserRepository extends Repository<User, Long> {
649649
}
650650
----
651651
<1> The repository resides in a package (or sub-package) for which we have defined non-null behavior.
652-
<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`.
653-
<3> Returns `null` when the query executed does not produce a result. Also accepts `null` as the value for `emailAddress`.
654-
<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`.
652+
<2> Throws an `EmptyResultDataAccessException` when the query does not produce a result. Throws an `IllegalArgumentException` when the `emailAddress` handed to the method is `null`.
653+
<3> Returns `null` when the query does not produce a result. Also accepts `null` as the value for `emailAddress`.
654+
<4> Returns `Optional.empty()` when the query does not produce a result. Throws an `IllegalArgumentException` when the `emailAddress` handed to the method is `null`.
655655
====
656656

657657
[[repositories.nullability.kotlin]]
@@ -672,8 +672,8 @@ interface UserRepository : Repository<User, String> {
672672
fun findByFirstname(firstname: String?): User? <2>
673673
}
674674
----
675-
<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.
676-
<2> This method accepts `null` for the `firstname` parameter and returns `null` if the query execution does not produce a result.
675+
<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.
676+
<2> This method accepts `null` for the `firstname` parameter and returns `null` if the query does not produce a result.
677677
====
678678

679679
[[repositories.query-streaming]]

0 commit comments

Comments
 (0)