-
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
1 parent
24f0f70
commit 491af09
Showing
4 changed files
with
79 additions
and
86 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
11 changes: 10 additions & 1 deletion
11
src/main/java/likelion/MZConnent/repository/culture/CultureInterestRepository.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,9 +1,18 @@ | ||
package likelion.MZConnent.repository.culture; | ||
|
||
import likelion.MZConnent.domain.culture.Culture; | ||
import likelion.MZConnent.domain.culture.CultureInterest; | ||
import likelion.MZConnent.domain.member.Member; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.Optional; | ||
|
||
@Repository | ||
public interface CultureInterestRepository extends JpaRepository<CultureInterest, Long> { | ||
} | ||
|
||
boolean existsByMemberAndCulture(Member member, Culture culture); | ||
|
||
Optional<CultureInterest> findByMemberAndCulture(Member member, Culture culture); | ||
} |
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
78 changes: 0 additions & 78 deletions
78
src/test/java/likelion/MZConnent/service/culture/CultureServiceTest.java
This file was deleted.
Oops, something went wrong.