What Spring Data Tests Can Miss: Testing Beyond Hibernate’s Persistence Context (Chapter 7)
Here's the mechanism, before the war story: every EntityManager keeps a first-level cache, an identity map of every entity it's touched in the current persistence context. Call find() (which is what l
pureengine.hashnode.dev13 min read