Package org.forum.server.jpa
Interface TopicRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Topic,
,Long> FindTopicRepository
,org.springframework.data.repository.Repository<Topic,
Long>
public interface TopicRepository
extends org.springframework.data.repository.CrudRepository<Topic,Long>, FindTopicRepository
- Author:
- etienne-sf
-
Method Summary
Modifier and TypeMethodDescriptionfindByBoardId
(Long boardId) findByBoardIdAndSince
(Long boardId, Date since) findByBoardName
(String name) An example of a native query that could be used for some particular caseThe query for the BatchLoaderMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
Methods inherited from interface org.forum.server.jpa.FindTopicRepository
findByBoardNameAndKeywords
-
Method Details
-
findByBoardId
-
findByBoardIdAndSince
-
findByBoardName
@Query(value=" select t.* from Topic t join Board b on t.board_id = b.id where b.name = ?1", nativeQuery=true) List<Topic> findByBoardName(String name) An example of a native query that could be used for some particular case- Parameters:
name
-- Returns:
-
findByIds
The query for the BatchLoader
-