Skip to content

Commit

Permalink
feat: CustomerRepository에 findByUserId() 쿼리 메서드 추가 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mybloom committed Jun 9, 2022
1 parent dc1af7c commit 456f257
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package org.team4.airbnb.customer;

import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CustomerRepository extends JpaRepository<Customer, Long> {

Customer findFirstBy();

Optional<Customer> findByUserId();
}

0 comments on commit 456f257

Please sign in to comment.