diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java index cf591de5a..b29248cd2 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java @@ -33,6 +33,7 @@ import java.util.Collection; import java.util.EnumSet; import java.util.Map; import java.util.HashMap; +import java.util.IdentityHashMap; import javax.persistence.EntityManager; import javax.persistence.FlushModeType; import javax.persistence.LockModeType; @@ -84,7 +85,7 @@ public class EntityManagerImpl private DelegatingBroker _broker; private EntityManagerFactoryImpl _emf; private Map _plans = - new HashMap(1); + new IdentityHashMap(1); private RuntimeExceptionTranslator ret = PersistenceExceptions.getRollbackTranslator(this);