org.silverpeas.resourcemanager.repository
Interface CategoryRepository

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

public interface CategoryRepository
extends org.springframework.data.jpa.repository.JpaRepository<Category,Long>


Method Summary
 List<Category> findCategoriesByInstanceId(String 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

findCategoriesByInstanceId

@Query(value="from Category category WHERE category.instanceId = :instanceId ORDER BY name")
List<Category> findCategoriesByInstanceId(@Param(value="instanceId")
                                                String instanceId)


Copyright © 2016 Silverpeas. All Rights Reserved.