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 TypeMethodDescriptionfindDistinctByLicenceNo(Integer licenceNo) 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, saveAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll, findAll
-
Method Details
-
findDistinctByLicenceNo
Finds an individual driver based on their licence number being an exact match.- Parameters:
licenceNo- the driver's licence number- Returns:
- an individual driver
-