This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openjpa.git
The following commit(s) were added to refs/heads/master by this push: new 574e226 [OPENJPA-2834] also cache properties in the em - even if less useful, but no need to recompute it again and again 574e226 is described below commit 574e226ba074dda5927623f5f1b33c009c4d1187 Author: Romain Manni-Bucau <rmannibu...@gmail.com> AuthorDate: Thu Oct 1 09:49:00 2020 +0200 [OPENJPA-2834] also cache properties in the em - even if less useful, but no need to recompute it again and again --- .../src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java | 1 + 1 file changed, 1 insertion(+) 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 1a171dd..d5f78fe 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 @@ -1965,6 +1965,7 @@ public class EntityManagerImpl props.put(userKey.equals(kernelKey) ? s : userKey, JPAProperties.convertToUserValue(userKey, kvalue)); } } + properties = props; // no need to synchronize, we don't care of the actual ref, we just want it as value return props; }