Skip to content

Commit e0fbd2d

Browse files
committed
Reorganize embedded database sections in reference manual
1 parent c5b9b39 commit e0fbd2d

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

src/asciidoc/data-access.adoc

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4681,40 +4681,27 @@ public class DataSourceConfig {
46814681
}
46824682
----
46834683

4684-
4685-
[[jdbc-embedded-database-extension]]
4686-
==== Extending the embedded database support
4687-
4688-
Spring JDBC embedded database support can be extended in two ways:
4689-
4690-
* Implement `EmbeddedDatabaseConfigurer` to support a new embedded database type.
4691-
* Implement `DataSourceFactory` to support a new `DataSource` implementation, such as a
4692-
connection pool to manage embedded database connections.
4693-
4694-
You are encouraged to contribute back extensions to the Spring community at
4695-
https://jira.spring.io/browse/SPR[jira.spring.io].
4696-
4684+
[[jdbc-embedded-database-types]]
4685+
==== Selecting the embedded database type
46974686

46984687

46994688
[[jdbc-embedded-database-using-HSQL]]
4700-
==== Using HSQL
4689+
===== Using HSQL
47014690
Spring supports HSQL 1.8.0 and above. HSQL is the default embedded database if no type is
47024691
specified explicitly. To specify HSQL explicitly, set the `type` attribute of the
47034692
`embedded-database` tag to `HSQL`. If you are using the builder API, call the
47044693
`setType(EmbeddedDatabaseType)` method with `EmbeddedDatabaseType.HSQL`.
47054694

47064695

4707-
47084696
[[jdbc-embedded-database-using-H2]]
4709-
==== Using H2
4697+
===== Using H2
47104698
Spring supports the H2 database as well. To enable H2, set the `type` attribute of the
47114699
`embedded-database` tag to `H2`. If you are using the builder API, call the
47124700
`setType(EmbeddedDatabaseType)` method with `EmbeddedDatabaseType.H2`.
47134701

47144702

4715-
47164703
[[jdbc-embedded-database-using-Derby]]
4717-
==== Using Derby
4704+
===== Using Derby
47184705
Spring also supports Apache Derby 10.5 and above. To enable Derby, set the `type`
47194706
attribute of the `embedded-database` tag to `DERBY`. If you are using the builder API,
47204707
call the `setType(EmbeddedDatabaseType)` method with `EmbeddedDatabaseType.DERBY`.
@@ -4763,6 +4750,20 @@ Framework>> and configuring the embedded database as a bean in the Spring
47634750

47644751

47654752

4753+
[[jdbc-embedded-database-extension]]
4754+
==== Extending the embedded database support
4755+
4756+
Spring JDBC embedded database support can be extended in two ways:
4757+
4758+
* Implement `EmbeddedDatabaseConfigurer` to support a new embedded database type.
4759+
* Implement `DataSourceFactory` to support a new `DataSource` implementation, such as a
4760+
connection pool to manage embedded database connections.
4761+
4762+
You are encouraged to contribute back extensions to the Spring community at
4763+
https://jira.spring.io/browse/SPR[jira.spring.io].
4764+
4765+
4766+
47664767
[[jdbc-intializing-datasource]]
47674768
=== Initializing a DataSource
47684769
The `org.springframework.jdbc.datasource.init` package provides support for initializing

0 commit comments

Comments
 (0)