ResponseEntity < CarteiraDTO > function ( @ PathVariable Long arg0 ) { log . debug ( "srini_string" , arg0 ) ; return Optional . ofNullable ( carteiraRepository . findOne ( arg0 ) ) . map ( carteiraMapper :: carteiraToCarteiraDTO ) . map ( carteiraDTO -> new ResponseEntity < > ( carteiraDTO , HttpStatus . OK ) ) . orElse ( new ResponseEntity < > ( HttpStatus . NOT_FOUND ) ) ; }
get / carteiras / : id - > get the `` id '' carteira . concode_field_sep CarteiraMapper carteiraMapper concode_elem_sep Logger log concode_elem_sep CarteiraRepository carteiraRepository concode_field_sep ResponseEntity<List<CarteiraDTO>> getAll concode_elem_sep ResponseEntity<CarteiraDTO> create concode_elem_sep ResponseEntity<CarteiraDTO> update concode_elem_sep ResponseEntity<Void> delete