mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-26 16:10:49 +08:00
16 lines
561 B
Java
16 lines
561 B
Java
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<CommentSubscription, Long> {
|
|
List<CommentSubscription> findByComment(Comment comment);
|
|
List<CommentSubscription> findByUser(User user);
|
|
Optional<CommentSubscription> findByUserAndComment(User user, Comment comment);
|
|
}
|