Browse Source

DATAJDBC-555 - Polishing.

Removed redundant content.
Change to active voice.
Formatting.

Original pull request: #225.
pull/229/head
Jens Schauder 6 years ago
parent
commit
080d3af504
No known key found for this signature in database
GPG Key ID: 996B1389BA0721C3
  1. 6
      src/main/asciidoc/jdbc.adoc
  2. 2
      src/main/asciidoc/preface.adoc

6
src/main/asciidoc/jdbc.adoc

@ -71,7 +71,7 @@ First, you need to set up a running database server. Refer to your vendor docume @@ -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 @@ -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`.

2
src/main/asciidoc/preface.adoc

@ -38,7 +38,7 @@ See the Spring framework https://spring.io/docs[home page] for more information. @@ -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 <<jdbc.dialects,dialect>> 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

Loading…
Cancel
Save