Albin7326@suppo.fi to Programmer Humor@lemmy.ml · 9 months agoComment Your Code Peoplesuppo.fiimagemessage-square123fedilinkarrow-up11.56Karrow-down125
arrow-up11.54Karrow-down1imageComment Your Code Peoplesuppo.fiAlbin7326@suppo.fi to Programmer Humor@lemmy.ml · 9 months agomessage-square123fedilink
minus-squareAlien Nathan Edward@lemm.eelinkfedilinkarrow-up16·edit-29 months ago`/* Gets CustomerEntity from customer repository by customer ID or throws a customer not found exception */ public CustomerEntity getCustomerEntityById(String customerId){ customerRepository.findById(customerId).orElseThrow(new CustomerNotFoundException()) }`
`/* Gets CustomerEntity from customer repository by customer ID or throws a customer not found exception */
public CustomerEntity getCustomerEntityById(String customerId){ customerRepository.findById(customerId).orElseThrow(new CustomerNotFoundException()) }`