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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
