Skip to content

Instantly share code, notes, and snippets.

@HabeebCycle
Last active January 23, 2021 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HabeebCycle/ca6314a6dbcb37abd9a4dbdf951e2779 to your computer and use it in GitHub Desktop.
Save HabeebCycle/ca6314a6dbcb37abd9a4dbdf951e2779 to your computer and use it in GitHub Desktop.
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