Data cached by session is stale in Hibernate when compared to the database

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content