diff --git a/UserAttractionsRepository b/UserAttractionsRepository new file mode 100644 index 0000000..a943c98 --- /dev/null +++ b/UserAttractionsRepository @@ -0,0 +1,16 @@ +package com.power.travel.repository; + +import com.power.travel.model.Attractions; +import com.power.travel.model.User; +import com.power.travel.model.UserAttractions; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; + +import java.util.List; + +public interface UserAttractionsRepository extends JpaRepository, JpaSpecificationExecutor { + + List findUserAttractionsByUser(User user); + + UserAttractions findUserAttractionsByAttractionsAndUser(Attractions attractions, User user); +}