Commit 41225bdf authored by Alex Segers's avatar Alex Segers

[AFP-91] 🗃 Add '#findByEmail' query to 'ManagerRepository' (@asegers)

parent de1efd0b
...@@ -2,8 +2,10 @@ package com.afp.ordermanagement.repository; ...@@ -2,8 +2,10 @@ package com.afp.ordermanagement.repository;
import com.afp.ordermanagement.model.Manager; import com.afp.ordermanagement.model.Manager;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository; import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
//import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
// import reactor.core.publisher.Mono;
//@Repository
@Repository
public interface ManagerRepository extends ReactiveMongoRepository<Manager, String> { public interface ManagerRepository extends ReactiveMongoRepository<Manager, String> {
Mono<Manager> findByEmail(String email);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment