Interface PostRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Post,
,Long> org.springframework.data.jpa.repository.JpaRepository<Post,
,Long> org.springframework.data.repository.PagingAndSortingRepository<Post,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Post>
,org.springframework.data.repository.Repository<Post,
Long>
public interface PostRepository
extends org.springframework.data.jpa.repository.JpaRepository<Post,Long>
Repository for the
post
entity.- See Also:
-
JpaRepository
- Implementation Note:
- Keywords
-
Method Summary
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
-
findByAuthor
- Parameters:
user
- the user to search by- Returns:
- the found posts
-