-1
I have a bank view that when I register a new record the same view brings the outdated values to my listing. It only brings the data up to date if I take down the server and go up again.
I am using Spring Data and below follows more details to help:
@RequestMapping("/serviceList")
public ModelAndView getMenuServiceList(Model model) {
ModelAndView mv = new ModelAndView("service/serviceList");
// Dados estão chegando desatualizados!!!
List<VwOpenService> openServiceList = serviceFacade.getOpenServiceList();
mv.addObject("serviceListRegister", openServiceList);
countOfBudgets(model);
return mv;
}
Service layer
public List<VwOpenService> getOpenServiceList() {
return vwOpenService.findAll();
}
Repositorio (Spring Data)
@Repository
public interface OpenServiceRepository extends BaseRepository<VwOpenService, Long>{
List<VwOpenService> findAll();
}