File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/main/java/org/springframework/data/r2dbc/config Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1717
1818import io .r2dbc .spi .ConnectionFactory ;
1919
20+ import java .util .Collections ;
2021import java .util .Optional ;
2122
2223import org .springframework .context .annotation .Bean ;
@@ -149,10 +150,18 @@ public ReactiveDataAccessStrategy reactiveDataAccessStrategy(RelationalMappingCo
149150 */
150151@ Bean
151152public R2dbcCustomConversions r2dbcCustomConversions () {
153+ return new R2dbcCustomConversions (getStoreConversions (), Collections .emptyList ());
154+ }
155+
156+ /**
157+ * Returns the {@link Dialect}-specific {@link StoreConversions}.
158+ *
159+ * @return the {@link Dialect}-specific {@link StoreConversions}.
160+ */
161+ protected StoreConversions getStoreConversions () {
152162
153163Dialect dialect = getDialect (connectionFactory ());
154- StoreConversions storeConversions = StoreConversions .of (dialect .getSimpleTypeHolder ());
155- return new R2dbcCustomConversions (storeConversions , R2dbcCustomConversions .STORE_CONVERTERS );
164+ return StoreConversions .of (dialect .getSimpleTypeHolder (), R2dbcCustomConversions .STORE_CONVERTERS );
156165}
157166
158167/**
You can’t perform that action at this time.
0 commit comments