Skip to content

Commit

Permalink
Merge pull request #155 from CAUSOLDOUTMEN/feature/152-fix
Browse files Browse the repository at this point in the history
Fix: UserRepository entityGraph 관련 오류 수정 (#152)
  • Loading branch information
win-luck authored Jan 25, 2024
2 parents 5105118 + a2fa690 commit 03de22c
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package com.diareat.diareat.user.repository;

import com.diareat.diareat.user.domain.User;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface UserRepository extends JpaRepository<User, Long> {

@EntityGraph(attributePaths = {"roles"})
List<User> findAllByNameContaining(String name); // 회원이 팔로우를 위해 검색한 유저 목록 조회

boolean existsByName(String name); // 회원가입 시 닉네임 중복 확인
Expand Down

0 comments on commit 03de22c

Please sign in to comment.