Skip to content

Commit 5f0660d

Browse files
committed
Polishing.
Refine documentation links. See #2094
1 parent 2841b90 commit 5f0660d

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/main/antora/modules/ROOT/partials/id-generation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Spring Data uses identifier properties to identify entities.
55
That is, looking these up or creating statements targeting a particular row.
6-
The ID of an entity must be annotated with Spring Data's https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/annotation/Id.html[`@Id`] annotation.
6+
The ID of an entity must be annotated with Spring Data's {spring-data-commons-javadoc-base}/org/springframework/data/annotation/Id.html[`@Id`] annotation.
77

88
When your database has an auto-increment column for the ID column, the generated value gets set in the entity after inserting it into the database.
99

src/main/antora/modules/ROOT/partials/optimistic-locking.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Spring Data supports optimistic locking by means of a numeric attribute that is annotated with
2-
https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/annotation/Version.html[`@Version`] on the aggregate root.
2+
{spring-data-commons-javadoc-base}/org/springframework/data/annotation/Version.html[`@Version`] on the aggregate root.
33
Whenever Spring Data saves an aggregate with such a version attribute two things happen:
44

55
* The update statement for the aggregate root will contain a where clause checking that the version stored in the database is actually unchanged.

src/main/antora/resources/antora-resources/antora.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ prerelease: ${antora-component.prerelease}
33

44
asciidoc:
55
attributes:
6-
copyright-year: ${current.year}
6+
attribute-missing: 'warn'
7+
chomp: 'all'
78
version: ${project.version}
9+
copyright-year: ${current.year}
810
springversionshort: ${spring.short}
911
springversion: ${spring}
10-
attribute-missing: 'warn'
1112
commons: ${springdata.commons.docs}
1213
include-xml-namespaces: false
13-
spring-data-commons-docs-url: https://docs.spring.io/spring-data/commons/reference
14-
spring-data-commons-javadoc-base: https://docs.spring.io/spring-data/commons/docs/${springdata.commons}/api/
15-
spring-data-jdbc-javadoc: https://docs.spring.io/spring-data/jdbc/docs/${version}/api/
16-
spring-data-r2dbc-javadoc: https://docs.spring.io/spring-data/r2dbc/docs/${version}/api/
14+
spring-data-commons-docs-url: https://docs.spring.io/spring-data/commons/reference/{springdata.commons.short}
15+
spring-data-commons-javadoc-base: https://docs.spring.io/spring-data/commons/reference/{springdata.commons.short}/api/java
16+
spring-data-jdbc-javadoc: https://docs.spring.io/spring-data/relational/reference/${version}/api/java
17+
spring-data-r2dbc-javadoc: '{spring-data-jdbc-javadoc}'
1718
springdocsurl: https://docs.spring.io/spring-framework/reference/{springversionshort}
18-
springjavadocurl: https://docs.spring.io/spring-framework/docs/${spring}/javadoc-api
1919
spring-framework-docs: '{springdocsurl}'
20+
springjavadocurl: https://docs.spring.io/spring-framework/docs/${spring}/javadoc-api
2021
spring-framework-javadoc: '{springjavadocurl}'
2122
springhateoasversion: ${spring-hateoas}
2223
releasetrainversion: ${releasetrain}

0 commit comments

Comments
 (0)