diff options
author | Vitaly Takmazov | 2024-07-01 05:36:42 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-07-01 06:03:49 +0300 |
commit | 9c84e9ba60cce40f783a2d0bdde56dab96788b61 (patch) | |
tree | 4f421c628bc8a5d912bc0a12184f41de6287119b /src/main/java/com/juick/data/UsersRepository.java | |
parent | 9436d4927dc5035c83620bdd1dd34600370dce56 (diff) |
JPA: code cleanup
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); |