From 6b3e1cab893b5e5cef89e63bcc189c72e9adc986 Mon Sep 17 00:00:00 2001 From: p96aetpbr <2691443110@qq.com> Date: Wed, 26 Jun 2024 08:22:00 +0800 Subject: [PATCH] Add UserAttractionsRepository --- UserAttractionsRepository | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 UserAttractionsRepository 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); +}