Take the 2-minute tour ×  I'm using Hibernate behind of a JSF
project.  In the main page, i have a datatable representing a
list of objects.  I successfully make an update on a property of
an object (found in the datatable) using Hibernate. After
update, page is refreshed by redirecting using "xxx?faces-
redirect=true". I redirect the page to avoid "duplicate form
submission" kind problems.  Then, if i hit F5 several times, old
property value of updated object might come back to the page.
As i understand this is an Hibernate session problem. Because if
i close immidiately every session after they are used, this
problem doesn't occur. However, due to lazy fetching strategy, i
can't close the sessions after the transactions.  Briefly,
hibernate might bring old value of an object although it has
been successfully updated. How can i avoid such problem?  ps: I
suspected about caching mechanisms of Hibernate, and i disabled
first and second level cache using:  <property
name="hibernate.cache.use_query_cache">false<