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 Type
    Method
    Description
    Find list of Role by active flag.
    Find list of Role by name.
    Find Rol by 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, getReferenceById, 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, findBy, findOne
  • Method Details

    • findByName

      Optional<Rol> findByName(String name)
      Find Rol by name.
      Parameters:
      name - Rol name.
      Returns:
      Optional Rol object.
    • findAllByNameIn

      List<Rol> findAllByNameIn(List<String> names)
      Find list of Role by name.
      Parameters:
      names - Role names.
      Returns:
      List of Roles.
    • findAllByActive

      List<Rol> findAllByActive(Boolean active)
      Find list of Role by active flag.
      Parameters:
      active - active boolean
      Returns:
      List of Roles.