get / transfers / : id - > get the `` id '' transfer . concode_field_sep TransferMapper transferMapper concode_elem_sep TransferSearchRepository transferSearchRepository concode_elem_sep TransferRepository transferRepository concode_elem_sep Logger log concode_field_sep ResponseEntity<TransferDTO> createTransfer concode_elem_sep ResponseEntity<TransferDTO> updateTransfer concode_elem_sep ResponseEntity<List<TransferDTO>> getAllTransfers concode_elem_sep List<TransferDTO> searchTransfers concode_elem_sep ResponseEntity<Void> deleteTransfer
ResponseEntity < TransferDTO > function ( @ PathVariable Long arg0 ) { log . debug ( "srini_string" , arg0 ) ; return Optional . ofNullable ( transferRepository . findOne ( arg0 ) ) . map ( transferMapper :: transferToTransferDTO ) . map ( transferDTO -> new ResponseEntity < > ( transferDTO , HttpStatus . OK ) ) . orElse ( new ResponseEntity < > ( HttpStatus . NOT_FOUND ) ) ; }