Data cached by session is stale in Hibernate when compared to the database
Issue
- An entity has been modified in a transaction but the changes have not been committed
- Another client or thread has modified and committed changes to the database for the same entity
- A native or HQL query does not load the latest state from the database
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6
- Hibernate 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.