Skip to content

Commit

Permalink
✨ Fix: UserRepository entityGraph 관련 오류 수정 (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
win-luck committed Jan 25, 2024
1 parent 8811977 commit a2fa690
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 a2fa690

Please sign in to comment.