Interface RoleRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Role,Long>
,org.springframework.data.jpa.repository.JpaRepository<Role,Long>
,org.springframework.data.repository.PagingAndSortingRepository<Role,Long>
,org.springframework.data.repository.query.QueryByExampleExecutor<Role>
,org.springframework.data.repository.Repository<Role,Long>
@Repository public interface RoleRepository extends org.springframework.data.jpa.repository.JpaRepository<Role,Long>
Class represent repository which is responsible for roles db operations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Role>
findByName(String name)
Gets role by its name-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, 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
-
-