-
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.
Merge pull request #70 from LIKELION-TEAM4-HACKATHON/feature/culture-…
…detail 관심 문화 토글 기능 추가함
- Loading branch information
Showing
3 changed files
with
79 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
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