-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
35 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
13 changes: 5 additions & 8 deletions
13
...t_search/backend/domains/placeVoteRoom/repository/PlaceVoteCandidateMemberRepository.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,21 +1,18 @@ | ||
package middle_point_search.backend.domains.placeVoteRoom.repository; | ||
|
||
import middle_point_search.backend.domains.placeVoteRoom.domain.PlaceVoteCandidate; | ||
import middle_point_search.backend.domains.placeVoteRoom.domain.PlaceVoteCandidateMember; | ||
import middle_point_search.backend.domains.placeVoteRoom.domain.PlaceVoteRoom; | ||
import middle_point_search.backend.domains.member.domain.Member; | ||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
import middle_point_search.backend.domains.member.domain.Member; | ||
import middle_point_search.backend.domains.placeVoteRoom.domain.PlaceVoteCandidateMember; | ||
import middle_point_search.backend.domains.placeVoteRoom.domain.PlaceVoteRoom; | ||
|
||
public interface PlaceVoteCandidateMemberRepository extends JpaRepository<PlaceVoteCandidateMember, Long> { | ||
boolean existsByPlaceVoteCandidate_PlaceVoteRoomAndMember(PlaceVoteRoom placeVoteRoom, Member member); | ||
boolean existsByPlaceVoteCandidateAndMember(PlaceVoteCandidate candidate, Member member); | ||
List<PlaceVoteCandidateMember> findAllByPlaceVoteCandidate_PlaceVoteRoomAndMember(PlaceVoteRoom placeVoteRoom, | ||
Member member); | ||
|
||
Optional<PlaceVoteCandidateMember> findByPlaceVoteCandidate_PlaceVoteRoomAndMember(PlaceVoteRoom placeVoteRoom, | ||
Member member); | ||
} |