DATACMNS-1076 - Deprecate RxJava1CrudRepository and RxJava1SortingRepository interfaces.
Spring Data 2.0 is going GA after the feature freeze of RxJava 1. In prospect of its EOL it makes no sense to ship new APIs based on a library that goes towards EOL. RxJava1CrudRepository and RxJava1SortingRepository are subject to removal in a future milestone.
This commit is contained in:
@@ -18,6 +18,7 @@ package org.springframework.data.repository.core.support;
|
||||
import static org.hamcrest.Matchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import io.reactivex.Completable;
|
||||
import io.reactivex.Flowable;
|
||||
import reactor.core.publisher.Flux;
|
||||
import rx.Observable;
|
||||
@@ -29,10 +30,10 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.junit.MockitoJUnitRunner;
|
||||
import org.reactivestreams.Publisher;
|
||||
import org.springframework.data.repository.Repository;
|
||||
import org.springframework.data.repository.core.RepositoryInformation;
|
||||
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
|
||||
import org.springframework.data.repository.reactive.ReactiveSortingRepository;
|
||||
import org.springframework.data.repository.reactive.RxJava1CrudRepository;
|
||||
import org.springframework.data.repository.reactive.RxJava2CrudRepository;
|
||||
|
||||
/**
|
||||
@@ -133,7 +134,12 @@ public class ReactiveRepositoryInformationUnitTests {
|
||||
return information.getTargetClassMethod(repositoryType.getMethod(methodName, args));
|
||||
}
|
||||
|
||||
interface RxJava1InterfaceWithGenerics extends RxJava1CrudRepository<User, String> {}
|
||||
interface RxJava1InterfaceWithGenerics extends Repository<User, String> {
|
||||
|
||||
Observable<User> saveAll(Observable<User> entities);
|
||||
|
||||
Completable deleteAll();
|
||||
}
|
||||
|
||||
interface RxJava2InterfaceWithGenerics extends RxJava2CrudRepository<User, String> {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user