Skip to content

Commit

Permalink
Fix: social profile 조회 시 member도 fetch join하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
WonSteps committed Oct 25, 2024
1 parent 5ac23da commit 0d1b679
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

import com.dnd.runus.global.constant.SocialType;
import com.dnd.runus.infrastructure.persistence.jpa.member.entity.SocialProfileEntity;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface JpaSocialProfileRepository extends JpaRepository<SocialProfileEntity, Long> {

@EntityGraph(attributePaths = {"member"})
Optional<SocialProfileEntity> findBySocialTypeAndOauthId(SocialType socialType, String oauthId);

void deleteByMemberId(long memberId);
Expand Down

0 comments on commit 0d1b679

Please sign in to comment.