I have a interface extened by ReactiveCrudRepository as follows. Since I needed to write a aggregate query I created another interface and implemented the custom method there.
public interface MyNiceRepository extends ReactiveCrudRepository<MyNiceObject, String>, MyNiceCustomRepository {
Mono<MyNiceObject> findOneByName(String name);
}
MyNiceCustomRepository
public interface MyNiceCustomRepository {
Flux<MyNiceObject> customMethod(CustomObject request);
}
I get the following exception, it seems like spring is trying to parse the custom method in the second interface as well.
Caused by: org.springframework.data.mapping.PropertyReferenceException: No property customMethod found for type MyNiceObject!
How this should be done