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 TypeMethodDescriptionorg.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, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods 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
-
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. SeePageable.- Returns:
- A Page containing all event posted by the specified user.
-