public interface ICommentsRepository
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.Long id)
This method deletes a specified by id comment
|
java.lang.Iterable<Comment> |
findByCommentableId(java.lang.Long commentableId)
This method finds all comments to a specified by id commentable
|
Comment |
save(Comment comment)
This method saves data about comment.
|
java.lang.Iterable<Comment> findByCommentableId(java.lang.Long commentableId)
commentableId - Id of commentable to receive comments toComment save(Comment comment)
comment - Comment instancevoid delete(java.lang.Long id)
id - Id of comment to delete