Interface CountryRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Country,Integer>, org.springframework.data.jpa.repository.JpaRepository<Country,Integer>, org.springframework.data.repository.PagingAndSortingRepository<Country,Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<Country>, org.springframework.data.repository.Repository<Country,Integer>

public interface CountryRepository extends org.springframework.data.jpa.repository.JpaRepository<Country,Integer>
Country Repository Country.
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds a country by its ISO code.

    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

    • findByIsoCode

      Optional<Country> findByIsoCode(String isoCode)
      Finds a country by its ISO code.
      Parameters:
      isoCode - ISO code.
      Returns:
      country found by its ISO code Country.