Interface RoleRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Role,Long>, org.springframework.data.repository.PagingAndSortingRepository<Role,Long>, org.springframework.data.repository.Repository<Role,Long>

public interface RoleRepository extends org.springframework.data.repository.PagingAndSortingRepository<Role,Long>, org.springframework.data.repository.CrudRepository<Role,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<Role>
    findAll(org.springframework.data.domain.Pageable pageable, Long actorId)
     

    Methods 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.springframework.data.repository.PagingAndSortingRepository

    findAll, findAll
  • Method Details

    • findAll

      @Query("SELECT p FROM Role p where :actorId is null or (p.actorId = :actorId)") org.springframework.data.domain.Page<Role> findAll(org.springframework.data.domain.Pageable pageable, @Param("actorId") Long actorId)