View not returning the updated DB data

-1

I have a bank view that when registering a new record the same view brings the outdated values to my listing. It only brings the data up to date if I bring down the server and upload again.

I'm using Spring Data and below is 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();
}

Repository (Spring Data)

@Repository
public interface OpenServiceRepository extends BaseRepository<VwOpenService, Long>{

    List<VwOpenService> findAll();

}
    
asked by anonymous 24.06.2015 / 17:30

1 answer

1

The problem was solely and exclusively related to caching, so I just added the following property in my Eclipselink % entity that ended up healing the problem.

    
25.06.2015 / 00:49