Skip to content

Commit 080d3af

Browse files
committed
DATAJDBC-555 - Polishing.
Removed redundant content. Change to active voice. Formatting. Original pull request: #225.
1 parent 8ef047c commit 080d3af

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/main/asciidoc/jdbc.adoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ First, you need to set up a running database server. Refer to your vendor docume
7171
To create a Spring project in STS:
7272

7373
. Go to File -> New -> Spring Template Project -> Simple Spring Utility Project, and press Yes when prompted. Then enter a project and a package name, such as `org.spring.jdbc.example`.
74-
.Add the following to the pom.xml files `dependencies` element:
74+
. Add the following to the `pom.xml` files `dependencies` element:
7575
+
7676
[source,xml,subs="+attributes"]
7777
----
@@ -172,10 +172,6 @@ Spring Data JDBC uses implementations of the interface `Dialect` to encapsulate
172172
By default, the `AbstractJdbcConfiguration` tries to determine the database in use an register the correct `Dialect`.
173173
This behavior can be changed by overwriting `jdbcDialect(NamedParameterJdbcOperations)`.
174174

175-
TIP: Dialects are resolved by `JdbcDialectResolver` from `JdbcOperations`, typically by inspecting `Connection`.
176-
You can let Spring auto-discover your `Dialect` by registering a class that implements `org.springframework.data.jdbc.repository.config.DialectResolver$JdbcDialectProvider` through `META-INF/spring.factories`.
177-
`DialectResolver` discovers dialect provider implementations from the class path using Spring's `SpringFactoriesLoader`.
178-
179175
If you use a database for which no dialect is available, then your application won’t startup. In that case, you’ll have to ask your vendor to provide a `Dialect` implementation. Alternatively, you can:
180176

181177
1. Implement your own `Dialect`.

src/main/asciidoc/preface.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ See the Spring framework https://spring.io/docs[home page] for more information.
3838
The Spring Data JDBC binaries require JDK level 8.0 and above and https://spring.io/docs[Spring Framework] {springVersion} and above.
3939

4040
In terms of databases, Spring Data JDBC requires a <<jdbc.dialects,dialect>> to abstract common SQL functionality over vendor-specific flavours.
41-
Support for the following databases is bundled with Spring Data JDBC binaries:
41+
Spring Data JDBC includes direct support for the following databases:
4242

4343
* DB2
4444
* H2

0 commit comments

Comments
 (0)