Skip to content

Commit

Permalink
[feat]MemberRepository @param 명시
Browse files Browse the repository at this point in the history
Signed-off-by: kmw2378 <[email protected]>
  • Loading branch information
kmw2378 committed Jul 22, 2024
1 parent c4bc5a0 commit 896d5fb
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package org.kakaoshare.backend.domain.member.repository;

import java.util.List;
import org.kakaoshare.backend.domain.member.entity.Member;
import org.kakaoshare.backend.domain.member.repository.query.MemberRepositoryCustom;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.Query;

public interface MemberRepository extends JpaRepository<Member, Long>, MemberRepositoryCustom {
Optional<Member> findMemberByProviderId(String providerId);
@Query("SELECT m FROM Member m WHERE m.providerId IN :providerIds")
List<Member> findByProviderIds(List<String> providerIds);
List<Member> findByProviderIds(@Param("providerIds") List<String> providerIds);
}

0 comments on commit 896d5fb

Please sign in to comment.