Interface InstitutionRepository

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

    @Repository
    public interface InstitutionRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Institution,​Long>
    Class represent repository which is responsible for institutions db operations
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Optional<Institution> findByName​(String name)
      Gets institution 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
      • 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 Detail

      • findByName

        Optional<Institution> findByName​(String name)
        Gets institution by its name
        Parameters:
        name - institutin name
        Returns:
        found institution