diff options
Diffstat (limited to 'src/main/java/com/juick/data/UsersRepository.java')
-rw-r--r-- | src/main/java/com/juick/data/UsersRepository.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/juick/data/UsersRepository.java b/src/main/java/com/juick/data/UsersRepository.java index e2fcc0e8..d391d52d 100644 --- a/src/main/java/com/juick/data/UsersRepository.java +++ b/src/main/java/com/juick/data/UsersRepository.java @@ -26,8 +26,7 @@ import java.util.Optional; import java.util.stream.Stream; @Repository -public interface UsersRepository extends JpaRepository<UserEntity, String> { - Optional<UserEntity> findById(Integer uid); +public interface UsersRepository extends JpaRepository<UserEntity, Integer> { UserEntity findByName(String name); Optional<UserEntity> findByNameAndPassword(String name, String password); Optional<UserEntity> findByEmailsEmail(String email); |