-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
27 additions
and
22 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: 7 additions & 6 deletions
13
src/main/java/com/tteokguk/tteokguk/member/infra/persistence/MemberRepository.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
13 changes: 7 additions & 6 deletions
13
src/main/java/com/tteokguk/tteokguk/member/infra/persistence/SimpleMemberRepository.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,15 +1,16 @@ | ||
package com.tteokguk.tteokguk.member.infra.persistence; | ||
|
||
import java.util.Optional; | ||
|
||
import com.tteokguk.tteokguk.member.domain.SimpleMember; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import com.tteokguk.tteokguk.member.domain.SimpleMember; | ||
import java.util.Optional; | ||
|
||
public interface SimpleMemberRepository extends JpaRepository<SimpleMember, Long> { | ||
boolean existsByEmail(String email); | ||
boolean existsByEmail(String email); | ||
|
||
Optional<SimpleMember> findByIdAndDeleted(Long id, boolean deleted); | ||
|
||
Optional<SimpleMember> findByEmail(String email); | ||
Optional<SimpleMember> findByEmail(String email); | ||
|
||
boolean existsByNickname(String nickname); | ||
boolean existsByNickname(String nickname); | ||
} |
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