diff --git a/src/main/java/com/yello/server/domain/user/repository/UserJpaRepository.java b/src/main/java/com/yello/server/domain/user/repository/UserJpaRepository.java index 23eb288d..5e6d6df7 100644 --- a/src/main/java/com/yello/server/domain/user/repository/UserJpaRepository.java +++ b/src/main/java/com/yello/server/domain/user/repository/UserJpaRepository.java @@ -134,8 +134,4 @@ List findAllByOtherGroupContainingYelloId(@Param("groupName") String group + "where LOWER(u.name) like LOWER(CONCAT('%', :name, '%'))") Page findAllByNameContaining(Pageable pageable, @Param("name") String name); - @Query("select u from User u") - Page findAllByPageable(Pageable pageable); - - } diff --git a/src/main/java/com/yello/server/domain/user/repository/UserRepository.java b/src/main/java/com/yello/server/domain/user/repository/UserRepository.java index c57e9e6a..0c9d9256 100644 --- a/src/main/java/com/yello/server/domain/user/repository/UserRepository.java +++ b/src/main/java/com/yello/server/domain/user/repository/UserRepository.java @@ -76,6 +76,4 @@ List findAllByOtherGroupContainingYelloId(String groupName, String keyword void delete(User user); - Page findAllByPageable(Pageable pageable); - } diff --git a/src/main/java/com/yello/server/domain/user/repository/UserRepositoryImpl.java b/src/main/java/com/yello/server/domain/user/repository/UserRepositoryImpl.java index d7acebae..7a9a85af 100644 --- a/src/main/java/com/yello/server/domain/user/repository/UserRepositoryImpl.java +++ b/src/main/java/com/yello/server/domain/user/repository/UserRepositoryImpl.java @@ -193,8 +193,5 @@ public void delete(User user) { userJpaRepository.delete(user); } - @Override - public Page findAllByPageable(Pageable pageable) { - return userJpaRepository.findAllByPageable(pageable); - } + }