From 080d3af504c2ad12d60870e9f6cf5c310b0194b4 Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Wed, 10 Jun 2020 10:30:42 +0200 Subject: [PATCH] DATAJDBC-555 - Polishing. Removed redundant content. Change to active voice. Formatting. Original pull request: #225. --- src/main/asciidoc/jdbc.adoc | 6 +----- src/main/asciidoc/preface.adoc | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/asciidoc/jdbc.adoc b/src/main/asciidoc/jdbc.adoc index 490ce8063..614ed610f 100644 --- a/src/main/asciidoc/jdbc.adoc +++ b/src/main/asciidoc/jdbc.adoc @@ -71,7 +71,7 @@ First, you need to set up a running database server. Refer to your vendor docume To create a Spring project in STS: . 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`. -.Add the following to the pom.xml files `dependencies` element: +. Add the following to the `pom.xml` files `dependencies` element: + [source,xml,subs="+attributes"] ---- @@ -172,10 +172,6 @@ Spring Data JDBC uses implementations of the interface `Dialect` to encapsulate By default, the `AbstractJdbcConfiguration` tries to determine the database in use an register the correct `Dialect`. This behavior can be changed by overwriting `jdbcDialect(NamedParameterJdbcOperations)`. -TIP: Dialects are resolved by `JdbcDialectResolver` from `JdbcOperations`, typically by inspecting `Connection`. -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`. -`DialectResolver` discovers dialect provider implementations from the class path using Spring's `SpringFactoriesLoader`. - 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: 1. Implement your own `Dialect`. diff --git a/src/main/asciidoc/preface.adoc b/src/main/asciidoc/preface.adoc index bfa73e165..d90edf234 100644 --- a/src/main/asciidoc/preface.adoc +++ b/src/main/asciidoc/preface.adoc @@ -38,7 +38,7 @@ See the Spring framework https://spring.io/docs[home page] for more information. The Spring Data JDBC binaries require JDK level 8.0 and above and https://spring.io/docs[Spring Framework] {springVersion} and above. In terms of databases, Spring Data JDBC requires a <> to abstract common SQL functionality over vendor-specific flavours. -Support for the following databases is bundled with Spring Data JDBC binaries: +Spring Data JDBC includes direct support for the following databases: * DB2 * H2