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 Type
    Method
    Description
    List of comments by client ID.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findAllByClientIdOrderByUpdateDateDesc

      List<Comment> findAllByClientIdOrderByUpdateDateDesc(String clientId)
      List of comments by client ID.
      Parameters:
      clientId - client identifier
      Returns:
      comments list.