From 0fe8ba86c60a96b4e67196074ba4ec9944e34d5d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 1 Jul 2024 02:46:30 +0300 Subject: JPA: map UserEntity to User using `mapstruct` library --- src/main/java/com/juick/data/UsersRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick/data/UsersRepository.java') diff --git a/src/main/java/com/juick/data/UsersRepository.java b/src/main/java/com/juick/data/UsersRepository.java index 64e08192..640fd75a 100644 --- a/src/main/java/com/juick/data/UsersRepository.java +++ b/src/main/java/com/juick/data/UsersRepository.java @@ -28,7 +28,7 @@ import java.util.stream.Stream; @Repository public interface UsersRepository extends CrudRepository { Optional findById(Integer uid); - Optional findByName(String name); + UserEntity findByName(String name); Optional findByNameAndPassword(String name, String password); Optional findByEmailsEmail(String email); Stream findAllByNameIn(Collection names); -- cgit v1.2.3