Albin Jose@suppo.fi to Programmer Humor@lemmy.ml · 1 year agoComment Your Code Peoplesuppo.fiimagemessage-square119fedilinkarrow-up11.52Karrow-down125
arrow-up11.5Karrow-down1imageComment Your Code Peoplesuppo.fiAlbin Jose@suppo.fi to Programmer Humor@lemmy.ml · 1 year agomessage-square119fedilink
minus-squareAlien Nathan Edward@lemm.eelinkfedilinkarrow-up16·edit-21 year 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()) }`