From 778d3687253ee2da365e08465c0001c864b83e44 Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Tue, 17 Oct 2023 13:25:27 +0200 Subject: [PATCH] Improve documentation about custom conversion registration. Closes #1625 --- src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc b/src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc index 62ecf299..f3e3851e 100644 --- a/src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc +++ b/src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc @@ -203,6 +203,13 @@ NOTE: In previous versions of Spring Data JDBC it was recommended to directly ov This is no longer necessary or even recommended, since that method assembles conversions intended for all databases, conversions registered by the `Dialect` used and conversions registered by the user. If you are migrating from an older version of Spring Data JDBC and have `AbstractJdbcConfiguration.jdbcCustomConversions()` overwritten conversions from your `Dialect` will not get registered. +[TIP] +==== +If you want to rely on https://spring.io/projects/spring-boot[Spring Boot] to bootstrap Spring Data JDBC, but still want to override certain aspects of the configuration, you may want to expose beans of that type. +For custom conversions you may e.g. choose to register a bean of type `JdbcCustomConversions` that will be picked up the by the Boot infrastructure. +To learn more about this please make sure to read the Spring Boot https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#data.sql.jdbc[Reference Documentation]. +==== + [[jdbc.custom-converters.jdbc-value]] === JdbcValue