Skip to content

Commit

Permalink
chore: curd -> jpa repository
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoo0515 committed Sep 5, 2024
1 parent 6110905 commit 557efde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package club.staircrusher.place.application.port.out.persistence

import club.staircrusher.place.domain.model.PlaceFavorite
import org.springframework.data.repository.CrudRepository
import org.springframework.data.jpa.repository.JpaRepository

interface PlaceFavoriteRepository : CrudRepository<PlaceFavorite, String> {
interface PlaceFavoriteRepository : JpaRepository<PlaceFavorite, String> {
fun findByUserIdAndDeletedAtIsNull(userId: String): List<PlaceFavorite>
fun findFirstByUserIdAndPlaceIdAndDeletedAtIsNull(userId: String, placeId: String): PlaceFavorite?
fun findFirstByUserIdAndPlaceId(userId: String, placeId: String): PlaceFavorite?
Expand Down

0 comments on commit 557efde

Please sign in to comment.