#447 - Deprecate ReactiveDataAccessStrategy.
ReactiveDataAccessStrategy is now deprecated in favor of using StatementMapper, UpdateMapper, and R2dbcConverter directly. The access strategy interface was introduced to allow pluggable access strategies in DatabaseClient. With moving DatabaseClient into Spring Framework, this approach is no longer required.
This commit is contained in:
@@ -50,8 +50,10 @@ public class R2dbcRepositoriesRegistrarTests {
|
||||
static class EnableWithDatabaseClient {
|
||||
|
||||
@Bean
|
||||
public DatabaseClient r2dbcDatabaseClient() {
|
||||
return mock(DatabaseClient.class);
|
||||
public R2dbcEntityTemplate r2dbcEntityTemplate() {
|
||||
R2dbcEntityTemplate template = mock(R2dbcEntityTemplate.class);
|
||||
when(template.getDataAccessStrategy()).thenReturn(reactiveDataAccessStrategy());
|
||||
return template;
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user