I am using Hibernate behing JPA and have the following problem.
My application pulls an entity out using the find operation of the
EntityManager, and then somewhere else in my application I want to pull
the same Entity out again cleanly with the current database state rather
than the dirty version but any time I try I get the same dirty data.
I have tried to detach the dirty version and then fetch the Entity again
but it is still same.
I have also tried the CacheRetrieveMode.BYPASS hint on the fetch in case
it is a caching problem.
How can I fetch a clean instance of my Entity side by side with the dirty
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop