You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
624 B
17 lines
624 B
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<UserAttractions, String>, JpaSpecificationExecutor<UserAttractions> {
|
|
|
|
List<UserAttractions> findUserAttractionsByUser(User user);
|
|
|
|
UserAttractions findUserAttractionsByAttractionsAndUser(Attractions attractions, User user);
|
|
}
|