-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
findByDateBetween() 추가
- Loading branch information
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
14 changes: 13 additions & 1 deletion
14
be/src/main/java/kr/codesquad/airbnb/repository/AccommodationRepository.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,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); | ||
|
||
|
||
} |