Skip to content

Commit

Permalink
[#16] Feat: 체크인, 체크아웃 날짜 사이에 이용 가능한 숙소 검색 메서드 추가 (#22)
Browse files Browse the repository at this point in the history
findByDateBetween() 추가
  • Loading branch information
street62 committed May 25, 2022
1 parent 1a671a0 commit 53438a0
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
package kr.codesquad.airbnb.repository;

public class AccommodationRepository {
import kr.codesquad.airbnb.domain.Accommodation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

@Repository
public interface AccommodationRepository extends JpaRepository {

List<Accommodation> findByDateBetween(LocalDate checkinDate, LocalDate checkoutDate);


}

0 comments on commit 53438a0

Please sign in to comment.