-
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.
Browse files
Browse the repository at this point in the history
…469) * refactor: VotingSongPart 에 ManyToOne 관계의 Member 필드 추가 생성자 변경으로 인해 실패하는 테스트 수정, sql 스크립트에 해당 변경 내용 적용 * feat: 멤버가 등록한 같은 파트가 있는지 확인하는 메서드 추가 * feat: VotingSongPartService 멤버가 등록한 같은 파트 처리 로직 추가 * feat: VotingSongPartController 멤버가 등록한 같은 파트 처리 로직, 테스트 추가 * style: 공백 제거 * refactor: VotingSongPart 의 Member 필드를 삭제하고 Vote 에 멤버를 추가한다. * refactor: VotingSongPartService 로직 변경 * refactor: 리뷰 반영
- Loading branch information
1 parent
e23e1c3
commit 77b5dd8
Showing
18 changed files
with
348 additions
and
65 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
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
5 changes: 5 additions & 0 deletions
5
...end/src/main/java/shook/shook/voting_song/domain/repository/VotingSongPartRepository.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,13 +1,18 @@ | ||
package shook.shook.voting_song.domain.repository; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
import shook.shook.part.domain.PartLength; | ||
import shook.shook.voting_song.domain.VotingSong; | ||
import shook.shook.voting_song.domain.VotingSongPart; | ||
|
||
@Repository | ||
public interface VotingSongPartRepository extends JpaRepository<VotingSongPart, Long> { | ||
|
||
List<VotingSongPart> findAllByVotingSong(final VotingSong song); | ||
|
||
Optional<VotingSongPart> findByVotingSongAndStartSecondAndLength(final VotingSong votingSong, | ||
final int startSecond, final PartLength length); | ||
} |
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
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
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
Oops, something went wrong.