Interface TaxPaymentRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TaxPayment,,Integer> org.springframework.data.repository.PagingAndSortingRepository<TaxPayment,,Integer> org.springframework.data.repository.Repository<TaxPayment,Integer>
public interface TaxPaymentRepository
extends org.springframework.data.repository.CrudRepository<TaxPayment,Integer>, org.springframework.data.repository.PagingAndSortingRepository<TaxPayment,Integer>
Repository for interacting with the tax_payment table in postgres.
-
Method Summary
Modifier and TypeMethodDescriptionfindDistinctByV11Ref(@Size(max=16) String v11Ref) Used to identify the existence of payments - the V11 numbers are linked to specific vehicle and are not repeated.
This is the reason for using this method to find unique transactions.
People paying will use this reference to pay.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
-
findDistinctByV11Ref
Used to identify the existence of payments - the V11 numbers are linked to specific vehicle and are not repeated.
This is the reason for using this method to find unique transactions.
People paying will use this reference to pay.- Parameters:
v11Ref- 16 digit number used as a unique identifier for tax payment referencing.- Returns:
- individual tax payment if found in the database.
-