Interface RoleRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Role,​String>, org.springframework.data.jpa.repository.JpaRepository<Role,​String>, org.springframework.data.repository.PagingAndSortingRepository<Role,​String>, org.springframework.data.repository.query.QueryByExampleExecutor<Role>, org.springframework.data.repository.Repository<Role,​String>

    public interface RoleRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Role,​String>
    The RoleRepository interface declares the repository for the Role domain type.
    Author:
    Marcus Portmann
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteById​(String roleCode)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteAllById, 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, 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, findOne
    • Method Detail

      • deleteById

        @Modifying
        @Query("delete from Role r where r.code = :roleCode")
        void deleteById​(@Param("roleCode")
                        String roleCode)
        Specified by:
        deleteById in interface org.springframework.data.repository.CrudRepository<Role,​String>