Last active
January 23, 2021 00:48
-
-
Save HabeebCycle/ca6314a6dbcb37abd9a4dbdf951e2779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.habeebcycle.demo.api.repository; | |
import com.habeebcycle.demo.api.model.User; | |
import org.springframework.data.repository.reactive.ReactiveCrudRepository; | |
import reactor.core.publisher.Mono; | |
public interface UserRepository extends ReactiveCrudRepository<User, String> { | |
Mono<User> findByUsername(String username); | |
Mono<User> findByEmail(String name); | |
Mono<Boolean> existsByUsername(String username); | |
Mono<Boolean> existsByEmail(String email); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment