cheque.getNotes().removeIf(note -> Objects.equals(note.getId(), noteID));
chequeRepository.save(cheque);
}
@RequestMapping("/sample")
public ModelAndView addCheques() {
<BUG>IntStream.range(0, 5).forEach(i -> chequeRepository.save(new Cheque().withRandomData()));
return new ModelAndView("redirect:/");</BUG>
}
@RequestMapping(value = "/api/currency-rate", method = RequestMethod.GET)
public Currency getCurrencyRates() {

cheque.getNotes().removeIf(note -> Objects.equals(note.getId(), noteID));
chequeRepository.save(cheque);
}
@RequestMapping("/sample")
public ModelAndView addCheques() {
IntStream.range(0, 5).forEach(i -> chequeRepository.save(new Cheque().withRandomData()));
User user = userRepository.findByUsername("admin");
user.setFirstname("Александр");
user.setLastname("Грешник");
userRepository.save(user);
return new ModelAndView("redirect:/");
}
@RequestMapping(value = "/api/currency-rate", method = RequestMethod.GET)
public Currency getCurrencyRates() {
