-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 공모 상세 조회 API에 참여자 목록 필드 추가 (#42)
- Loading branch information
1 parent
4b8322b
commit 838ec64
Showing
3 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
.../src/main/java/com/zzang/chongdae/offeringmember/repository/OfferingMemberRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package com.zzang.chongdae.offeringmember.repository; | ||
|
||
import com.zzang.chongdae.member.repository.entity.MemberEntity; | ||
import com.zzang.chongdae.offering.repository.entity.OfferingEntity; | ||
import com.zzang.chongdae.offeringmember.repository.entity.OfferingMemberEntity; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface OfferingMemberRepository extends JpaRepository<OfferingMemberEntity, Long> { | ||
|
||
int countByOffering(OfferingEntity offering); | ||
|
||
Boolean existsByOfferingAndMember(OfferingEntity offering, MemberEntity member); | ||
} |