com.silverpeas.kmelia.repository
Interface TopicSearchRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<TopicSearch,Long>, org.springframework.data.jpa.repository.JpaRepository<TopicSearch,Long>, org.springframework.data.repository.PagingAndSortingRepository<TopicSearch,Long>, org.springframework.data.repository.Repository<TopicSearch,Long>

public interface TopicSearchRepository
extends org.springframework.data.jpa.repository.JpaRepository<TopicSearch,Long>

Repository that handles TopicSearch beans.


Method Summary
 List<TopicSearch> findByInstanceId(String instanceId)
          Returns all TopicSearch from Repository with the given instanceId.
 
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, flush, save, saveAndFlush
 
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
 
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, delete, delete, deleteAll, exists, findAll, findOne, save
 

Method Detail

findByInstanceId

@Query(value="from TopicSearch where instanceId = :instanceId")
List<TopicSearch> findByInstanceId(@Param(value="instanceId")
                                         String instanceId)
Returns all TopicSearch from Repository with the given instanceId. This method will be translated into a query using the one declared in the Query annotation declared one.

Parameters:
instanceId -
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.