package com.openisle.repository; import com.openisle.model.Comment; import com.openisle.model.CommentSubscription; import com.openisle.model.User; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; import java.util.Optional; public interface CommentSubscriptionRepository extends JpaRepository { List findByComment(Comment comment); List findByUser(User user); Optional findByUserAndComment(User user, Comment comment); }