Skip to content

Commit

Permalink
📝 PurchaseRepository 의 find 메서드에 내림차순 옵션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuuuuk committed Dec 20, 2023
1 parent 6aa3187 commit 4059f03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import org.springframework.data.repository.CrudRepository

interface PurchaseRepository : CrudRepository<Purchase, Long> {

fun findAllByUser(user: User): List<Purchase>?
fun findAllByUserOrderByCreatedDateDesc(user: User): List<Purchase>?
}

0 comments on commit 4059f03

Please sign in to comment.