AccountRepository.java
384 bytes
| 1 | package com.tasteprint.account; |
|---|---|
| 2 | |
| 3 | import java.util.Optional; |
| 4 | import java.util.UUID; |
| 5 | |
| 6 | import org.springframework.data.jpa.repository.JpaRepository; |
| 7 | |
| 8 | interface AccountRepository extends JpaRepository<Account, UUID> { |
| 9 | |
| 10 | Optional<Account> findByEmailIgnoreCase(String email); |
| 11 | |
| 12 | Optional<Account> findByShareSlug(String shareSlug); |
| 13 | |
| 14 | boolean existsByShareSlug(String shareSlug); |
| 15 | } |
| 16 | |