Interface DriverRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Driver,Integer>, org.springframework.data.repository.PagingAndSortingRepository<Driver,Integer>, org.springframework.data.repository.Repository<Driver,Integer>

public interface DriverRepository extends org.springframework.data.repository.CrudRepository<Driver,Integer>, org.springframework.data.repository.PagingAndSortingRepository<Driver,Integer>
Repository for interacting with the driver table in postgres.
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds an individual driver based on their licence number being an exact match.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll, findAll
  • Method Details

    • findDistinctByLicenceNo

      Driver findDistinctByLicenceNo(Integer licenceNo)
      Finds an individual driver based on their licence number being an exact match.
      Parameters:
      licenceNo - the driver's licence number
      Returns:
      an individual driver