Skip to content

Commit 64a4b61

Browse files
di72nnmp911de
authored andcommitted
Add missing spaces to the docs and fix leveloffset.
Closes: #2454
1 parent cae5921 commit 64a4b61

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/main/asciidoc/index.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ include::preface.adoc[]
1414
= Reference Documentation
1515

1616
:leveloffset: +1
17+
1718
include::dependencies.adoc[]
1819

1920
include::object-mapping.adoc[]
@@ -25,6 +26,7 @@ include::repository-projections.adoc[]
2526
include::query-by-example.adoc[]
2627

2728
include::auditing.adoc[]
29+
2830
:leveloffset: -1
2931

3032
[[appendix]]

src/main/asciidoc/repositories.adoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ ListenableFuture<User> findOneByLastname(String lastname); <3>
858858
[[repositories.create-instances]]
859859
== Creating Repository Instances
860860

861-
This section covers how to create instances and bean definitions for the defined repository interfaces.One way to do so is by using the Spring namespace that is shipped with each Spring Data module that supports the repository mechanism, although we generally recommend using Java configuration.
861+
This section covers how to create instances and bean definitions for the defined repository interfaces. One way to do so is by using the Spring namespace that is shipped with each Spring Data module that supports the repository mechanism, although we generally recommend using Java configuration.
862862

863863
[[repositories.create-instances.spring]]
864864
=== XML Configuration
@@ -916,7 +916,7 @@ The preceding example excludes all interfaces ending in `SomeRepository` from be
916916
[[repositories.create-instances.java-config]]
917917
=== Java Configuration
918918

919-
You can also trigger the repository infrastructure by using a store-specific `@Enable${store}Repositories` annotation on a Java configuration class.For an introduction to Java-based configuration of the Spring container, see {spring-framework-docs}/core.html#beans-java[JavaConfig in the Spring reference documentation].
919+
You can also trigger the repository infrastructure by using a store-specific `@Enable${store}Repositories` annotation on a Java configuration class. For an introduction to Java-based configuration of the Spring container, see {spring-framework-docs}/core.html#beans-java[JavaConfig in the Spring reference documentation].
920920

921921
A sample configuration to enable Spring Data repositories resembles the following:
922922

@@ -936,12 +936,12 @@ class ApplicationConfiguration {
936936
----
937937
====
938938

939-
NOTE: The preceding example uses the JPA-specific annotation, which you would change according to the store module you actually use.The same applies to the definition of the `EntityManagerFactory` bean.See the sections covering the store-specific configuration.
939+
NOTE: The preceding example uses the JPA-specific annotation, which you would change according to the store module you actually use. The same applies to the definition of the `EntityManagerFactory` bean. See the sections covering the store-specific configuration.
940940

941941
[[repositories.create-instances.standalone]]
942942
=== Standalone Usage
943943

944-
You can also use the repository infrastructure outside of a Spring container -- for example, in CDI environments.You still need some Spring libraries in your classpath, but, generally, you can set up repositories programmatically as well.The Spring Data modules that provide repository support ship with a persistence technology-specific `RepositoryFactory` that you can use, as follows:
944+
You can also use the repository infrastructure outside of a Spring container -- for example, in CDI environments. You still need some Spring libraries in your classpath, but, generally, you can set up repositories programmatically as well. The Spring Data modules that provide repository support ship with a persistence technology-specific `RepositoryFactory` that you can use, as follows:
945945

946946
.Standalone usage of the repository factory
947947
====
@@ -1006,7 +1006,7 @@ interface UserRepository extends CrudRepository<User, Long>, CustomizedUserRepos
10061006

10071007
Extending the fragment interface with your repository interface combines the CRUD and custom functionality and makes it available to clients.
10081008

1009-
Spring Data repositories are implemented by using fragments that form a repository composition.Fragments are the base repository, functional aspects (such as <<core.extensions.querydsl,QueryDsl>>), and custom interfaces along with their implementations.Each time you add an interface to your repository interface, you enhance the composition by adding a fragment.The base repository and repository aspect implementations are provided by each Spring Data module.
1009+
Spring Data repositories are implemented by using fragments that form a repository composition. Fragments are the base repository, functional aspects (such as <<core.extensions.querydsl,QueryDsl>>), and custom interfaces along with their implementations. Each time you add an interface to your repository interface, you enhance the composition by adding a fragment. The base repository and repository aspect implementations are provided by each Spring Data module.
10101010

10111011
The following example shows custom interfaces and their implementations:
10121012

@@ -1058,7 +1058,7 @@ interface UserRepository extends CrudRepository<User, Long>, HumanRepository, Co
10581058
----
10591059
====
10601060

1061-
Repositories may be composed of multiple custom implementations that are imported in the order of their declaration.Custom implementations have a higher priority than the base implementation and repository aspects.This ordering lets you override base repository and aspect methods and resolves ambiguity if two fragments contribute the same method signature.Repository fragments are not limited to use in a single repository interface.Multiple repositories may use a fragment interface, letting you reuse customizations across different repositories.
1061+
Repositories may be composed of multiple custom implementations that are imported in the order of their declaration. Custom implementations have a higher priority than the base implementation and repository aspects. This ordering lets you override base repository and aspect methods and resolves ambiguity if two fragments contribute the same method signature. Repository fragments are not limited to use in a single repository interface. Multiple repositories may use a fragment interface, letting you reuse customizations across different repositories.
10621062

10631063
The following example shows a repository fragment and its implementation:
10641064

0 commit comments

Comments
 (0)