|
|
|
|
@ -2095,6 +2095,19 @@ include::{code-examples}/elasticsearch/HibernateSearchElasticsearchExample.java[
@@ -2095,6 +2095,19 @@ include::{code-examples}/elasticsearch/HibernateSearchElasticsearchExample.java[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[howto-configure-a-component-that-is-used-by-JPA]] |
|
|
|
|
=== Configure jOOQ with Two DataSources |
|
|
|
|
If you need to use jOOQ with multiple data sources, you should create your own |
|
|
|
|
`DSLContext` for each, refer to |
|
|
|
|
{sc-spring-boot-autoconfigure}/jooq/JooqAutoConfiguration.{sc-ext}[JooqAutoConfiguration] |
|
|
|
|
for more details. |
|
|
|
|
|
|
|
|
|
TIP: In particular, `JooqExceptionTranslator` and `SpringTransactionProvider` can be |
|
|
|
|
reused to provide similar features to what the auto-configuration does with a single |
|
|
|
|
`DataSource`. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[howto-database-initialization]] |
|
|
|
|
== Database initialization |
|
|
|
|
An SQL database can be initialized in different ways depending on what your stack is. Or |
|
|
|
|
|