Skip to content

Commit 3c93f94

Browse files
author
Rajeev Kumar Singh
committed
Removed findById() method. It's provided by JpaRepository
1 parent 3886697 commit 3c93f94

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

polling-app-server/src/main/java/com/example/polls/repository/UserRepository.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ public interface UserRepository extends JpaRepository<User, Long> {
1818

1919
List<User> findByIdIn(List<Long> userIds);
2020

21-
Optional<User> findById(Long userId);
22-
2321
Optional<User> findByUsername(String username);
2422

2523
Boolean existsByUsername(String username);

0 commit comments

Comments
 (0)