JPA (hibernate) automatically update entities [closed]

2

I have the following question: I realized that when I use JPA (Hibernate) + Spring in a JSF application (PrimeFaces) my entities are not updated immediately when registering, for example, I have a User when doing the same everything happens normally, the information is persisted in the database, but when trying to use eg an auto-complete component on another page the newly added entity record does not appear, unless I restart the server, after the restart everything works normally.

I created the topic in the JPA session since searching the internet, I think it is something related to the cache configuration of hibernate but I still can not find the solution, if anyone already has step by it or has some light on the subject let me know please.

Thank you, see you later

    
asked by anonymous 10.02.2015 / 20:41

0 answers