Browse Source

Fix typos

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>

Original pull request #3429
pull/3439/head
Tran Ngoc Nhan 2 months ago committed by Jens Schauder
parent
commit
a8be22ecf9
No known key found for this signature in database
GPG Key ID: 2BE5D185CD2A1CE6
  1. 4
      src/main/antora/modules/ROOT/pages/entity-callbacks.adoc
  2. 4
      src/main/antora/modules/ROOT/pages/repositories/core-extensions-web.adoc
  3. 2
      src/main/antora/modules/ROOT/pages/repositories/null-handling.adoc
  4. 2
      src/main/antora/modules/ROOT/pages/repositories/query-keywords-reference.adoc

4
src/main/antora/modules/ROOT/pages/entity-callbacks.adoc

@ -7,7 +7,7 @@ An `EntityCallback` looks pretty much like a specialized `ApplicationListener`. @@ -7,7 +7,7 @@ An `EntityCallback` looks pretty much like a specialized `ApplicationListener`.
Some Spring Data modules publish store specific events (such as `BeforeSaveEvent`) that allow modifying the given entity. In some cases, such as when working with immutable types, these events can cause trouble.
Also, event publishing relies on `ApplicationEventMulticaster`. If configuring that with an asynchronous `TaskExecutor` it can lead to unpredictable outcomes, as event processing can be forked onto a Thread.
Entity callbacks provide integration points with both synchronous and reactive APIs to guarantee in-order execution at well-defined checkpoints within the processing chain, returning a potentially modified entity or an reactive wrapper type.
Entity callbacks provide integration points with both synchronous and reactive APIs to guarantee in-order execution at well-defined checkpoints within the processing chain, returning a potentially modified entity or a reactive wrapper type.
Entity callbacks are typically separated by API type. This separation means that a synchronous API considers only synchronous entity callbacks and a reactive implementation considers only reactive entity callbacks.
@ -61,7 +61,7 @@ public interface ReactiveBeforeSaveCallback<T> extends EntityCallback<T> { @@ -61,7 +61,7 @@ public interface ReactiveBeforeSaveCallback<T> extends EntityCallback<T> {
String collection); // <3>
}
----
<1> `BeforeSaveCallback` specific method to be called on subscription, before an entity is saved. Emits a potentially modifed instance.
<1> `BeforeSaveCallback` specific method to be called on subscription, before an entity is saved. Emits a potentially modified instance.
<2> The entity right before persisting.
<3> A number of store specific arguments like the _collection_ the entity is persisted to.

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

@ -161,7 +161,7 @@ class MyController { @@ -161,7 +161,7 @@ class MyController {
private final MyRepository repository;
// Constructor ommitted
// Constructor omitted
@GetMapping("/page")
PagedModel<?> page(Pageable pageable) {
@ -211,7 +211,7 @@ class MyController { @@ -211,7 +211,7 @@ class MyController {
private final MyRepository repository;
// Constructor ommitted
// Constructor omitted
@GetMapping("/page")
Page<?> page(Pageable pageable) {

2
src/main/antora/modules/ROOT/pages/repositories/null-handling.adoc

@ -121,7 +121,7 @@ interface UserRepository extends Repository<User, Long> { @@ -121,7 +121,7 @@ interface UserRepository extends Repository<User, Long> {
User getByEmailAddress(EmailAddress emailAddress); <2>
@Nullable
User findByEmailAddress(@Nullable EmailAddress emailAdress); <3>
User findByEmailAddress(@Nullable EmailAddress emailAddress); <3>
Optional<User> findOptionalByEmailAddress(EmailAddress emailAddress); <4>
}

2
src/main/antora/modules/ROOT/pages/repositories/query-keywords-reference.adoc

@ -85,5 +85,5 @@ In addition to filter predicates, the following list of modifiers is supported: @@ -85,5 +85,5 @@ In addition to filter predicates, the following list of modifiers is supported:
|Keyword | Description
|`IgnoreCase`, `IgnoringCase`| Used with a predicate keyword for case-insensitive comparison.
|`AllIgnoreCase`, `AllIgnoringCase`| Ignore case for all suitable properties. Used somewhere in the query method predicate.
|`OrderBy…`| Specify a static sorting order followed by the property path and direction (e. g. `OrderByFirstnameAscLastnameDesc`).
|`OrderBy…`| Specify a static sorting order followed by the property path and direction (e.g. `OrderByFirstnameAscLastnameDesc`).
|===============

Loading…
Cancel
Save