#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:
Mark Paluch
2020-09-08 09:58:07 +02:00
parent 28edf271ad
commit a1081bbbb2
8 changed files with 57 additions and 17 deletions

View File

@@ -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