Interface RolRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Rol,,Long> org.springframework.data.jpa.repository.JpaRepository<Rol,,Long> org.springframework.data.repository.PagingAndSortingRepository<Rol,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Rol>,org.springframework.data.repository.Repository<Rol,Long>
@Repository
public interface RolRepository
extends org.springframework.data.jpa.repository.JpaRepository<Rol,Long>
Rol repository.
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByActive(Boolean active) Find list of Role by active flag.findAllByNameIn(List<String> names) Find list of Role by name.findByName(String name) Find Rol by name.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByName
Find Rol by name.- Parameters:
name- Rol name.- Returns:
- Optional Rol object.
-
findAllByNameIn
Find list of Role by name.- Parameters:
names- Role names.- Returns:
- List of Roles.
-
findAllByActive
Find list of Role by active flag.- Parameters:
active- active boolean- Returns:
- List of Roles.
-