I am using Hibernate and Spring for my web application.
In database operation, Hibernate is caching entities and returning them in next request without reading the a
session.refresh(entity) or entityManager.refresh(entity) (if you use JPA) will give you fresh data from DB.
session.refresh(entity)
entityManager.refresh(entity)