Interface CommentRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Comment,,String> org.springframework.data.jpa.repository.JpaRepository<Comment,,String> org.springframework.data.repository.PagingAndSortingRepository<Comment,,String> org.springframework.data.repository.query.QueryByExampleExecutor<Comment>,org.springframework.data.repository.Repository<Comment,String>
@Repository
public interface CommentRepository
extends org.springframework.data.jpa.repository.JpaRepository<Comment,String>
Comment repository.
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByClientIdOrderByUpdateDateDesc(String clientId) List of comments by client ID.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findAllByClientIdOrderByUpdateDateDesc
List of comments by client ID.- Parameters:
clientId- client identifier- Returns:
- comments list.
-