diff options
Diffstat (limited to 'src/main/java/com/juick/data/UsersRepository.java')
-rw-r--r-- | src/main/java/com/juick/data/UsersRepository.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/data/UsersRepository.java b/src/main/java/com/juick/data/UsersRepository.java index 640fd75a..e2fcc0e8 100644 --- a/src/main/java/com/juick/data/UsersRepository.java +++ b/src/main/java/com/juick/data/UsersRepository.java @@ -18,7 +18,7 @@ package com.juick.data; import com.juick.data.entities.UserEntity; -import org.springframework.data.repository.CrudRepository; +import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.Collection; @@ -26,7 +26,7 @@ import java.util.Optional; import java.util.stream.Stream; @Repository -public interface UsersRepository extends CrudRepository<UserEntity, String> { +public interface UsersRepository extends JpaRepository<UserEntity, String> { Optional<UserEntity> findById(Integer uid); UserEntity findByName(String name); Optional<UserEntity> findByNameAndPassword(String name, String password); |