Interface EventPostRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<EventPost,Long>, org.springframework.data.jpa.repository.JpaRepository<EventPost,Long>, org.springframework.data.repository.ListCrudRepository<EventPost,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<EventPost,Long>, org.springframework.data.repository.PagingAndSortingRepository<EventPost,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<EventPost>, org.springframework.data.repository.Repository<EventPost,Long>

@Repository public interface EventPostRepository extends org.springframework.data.jpa.repository.JpaRepository<EventPost,Long>
The EventPostRepository interface provides data access methods for interacting with EventPost entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<EventPost>
    findEventPostByPostedBy(@NotNull String postedBy, org.springframework.data.domain.Pageable pageable)
    Find all event posts by the username of the user who posted them.

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

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

    findAll, findAllById, saveAll

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

    findAll

    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

    • findEventPostByPostedBy

      org.springframework.data.domain.Page<EventPost> findEventPostByPostedBy(@NotNull @NotNull String postedBy, org.springframework.data.domain.Pageable pageable)
      Find all event posts by the username of the user who posted them.
      Parameters:
      postedBy - The username of the user who posted the event posts.
      pageable - The pagination object. See Pageable.
      Returns:
      A Page containing all event posted by the specified user.