@Modifying @Transactional public void deleteCheque(@PathVariable Long chequeID){
  chequeRepository.delete(chequeID);
  photoRepository.deleteByChequeId(chequeID.toString());
}

@ Modifying @ Transactional public void deleteCheque ( @ PathVariable Long chequeID ) { chequeRepository . delete ( chequeID ) ; photoRepository . deleteByChequeId ( chequeID . toString ( ) ) ; }
method deletecheque remove cheque from db by id
