From 478e2e26eb9d7d8ccecc7d476cb6c50f97c20803 Mon Sep 17 00:00:00 2001 From: Lukasz Antoniak Date: Mon, 19 May 2014 09:13:04 +0200 Subject: [PATCH] HHH-9201 - Evict cache instead of remove after transaction completion --- .../hibernate/engine/internal/StatefulPersistenceContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java b/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java index c63d59fb48..24844b99fd 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java @@ -1739,7 +1739,7 @@ public class StatefulPersistenceContext implements PersistenceContext { } } else { - naturalIdCacheAccessStrategy.remove( naturalIdCacheKey ); + naturalIdCacheAccessStrategy.evict( naturalIdCacheKey ); } } }