File tree 1 file changed +11
-2
lines changed
src/main/java/org/springframework/data/r2dbc/config
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import io .r2dbc .spi .ConnectionFactory ;
19
19
20
+ import java .util .Collections ;
20
21
import java .util .Optional ;
21
22
22
23
import org .springframework .context .annotation .Bean ;
@@ -149,10 +150,18 @@ public ReactiveDataAccessStrategy reactiveDataAccessStrategy(RelationalMappingCo
149
150
*/
150
151
@ Bean
151
152
public 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 () {
152
162
153
163
Dialect 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 );
156
165
}
157
166
158
167
/**
You can’t perform that action at this time.
0 commit comments