13 lines
357 B
Java
13 lines
357 B
Java
|
package com.webproglabs.lab1.dao;
|
||
|
|
||
|
import com.webproglabs.lab1.models.Comment;
|
||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||
|
|
||
|
import java.util.List;
|
||
|
import java.util.Optional;
|
||
|
|
||
|
public interface CommentRepository extends JpaRepository<Comment, Long> {
|
||
|
List<Comment> findByTextLike(String text);
|
||
|
Optional<Comment> findById(Long Id);
|
||
|
}
|