Skip to content

Commit 0122d1b

Browse files
committed
Polishing.
Use asciidoc variables where possible. See #2912
1 parent 7bad122 commit 0122d1b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/main/antora/antora.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ nav:
66
ext:
77
collector:
88
- run:
9-
command: ./mvnw validate process-resources -am -Pantora-process-resources
9+
command: mvn validate process-resources -am -Pantora-process-resources
1010
local: true
1111
scan:
1212
dir: target/classes/antora-resources/

src/main/antora/modules/ROOT/pages/dependencies.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The version name follows `+${calver}+` for GA releases and service releases and
3030

3131
You can find a working example of using the BOMs in our https://github.com/spring-projects/spring-data-examples/tree/main/bom[Spring Data examples repository]. With that in place, you can declare the Spring Data modules you would like to use without a version in the `<dependencies />` block, as follows:
3232

33-
.Declaring a dependency to a Spring Data module
33+
.Declaring a dependency to a Spring Data module such as JPA
3434
[source, xml]
3535
----
3636
<dependencies>

src/main/antora/modules/ROOT/pages/is-new-state-detection.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If no version property is present Spring Data falls back to inspection of the id
1818

1919
|Implementing `Persistable`
2020
|If an entity implements `Persistable`, Spring Data delegates the new detection to the `isNew(…)` method of the entity.
21-
See the link:https://docs.spring.io/spring-data/data-commons/docs/current/api/index.html?org/springframework/data/domain/Persistable.html[Javadoc] for details.
21+
See the link:{spring-data-commons-javadoc-base}/index.html?org/springframework/data/domain/Persistable.html[Javadoc] for details.
2222

2323
_Note: Properties of `Persistable` will get detected and persisted if you use `AccessType.PROPERTY`.
2424
To avoid that, use `@Transient`._

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
The central interface in the Spring Data repository abstraction is `Repository`.
55
It takes the domain class to manage as well as the identifier type of the domain class as type arguments.
66
This interface acts primarily as a marker interface to capture the types to work with and to help you to discover interfaces that extend this one.
7-
The https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/CrudRepository.html[`CrudRepository`] and https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/ListCrudRepository.html[`ListCrudRepository`] interfaces provide sophisticated CRUD functionality for the entity class that is being managed.
7+
The {spring-data-commons-javadoc-base}/org/springframework/data/repository/CrudRepository.html[`CrudRepository`] and {spring-data-commons-javadoc-base}/api/org/springframework/data/repository/ListCrudRepository.html[`ListCrudRepository`] interfaces provide sophisticated CRUD functionality for the entity class that is being managed.
88

99
[[repositories.repository]]
1010
.`CrudRepository` Interface
@@ -40,7 +40,7 @@ The methods declared in this interface are commonly referred to as CRUD methods.
4040
NOTE: We also provide persistence technology-specific abstractions, such as `JpaRepository` or `MongoRepository`.
4141
Those interfaces extend `CrudRepository` and expose the capabilities of the underlying persistence technology in addition to the rather generic persistence technology-agnostic interfaces such as `CrudRepository`.
4242

43-
Additional to the `CrudRepository`, there is a https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/PagingAndSortingRepository.html[`PagingAndSortingRepository`] abstraction that adds additional methods to ease paginated access to entities:
43+
Additional to the `CrudRepository`, there is a {spring-data-commons-javadoc-base}/org/springframework/data/repository/PagingAndSortingRepository.html[`PagingAndSortingRepository`] abstraction that adds additional methods to ease paginated access to entities:
4444

4545
.`PagingAndSortingRepository` interface
4646
[source,java]

0 commit comments

Comments
 (0)