We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 326335c commit 9259cb4Copy full SHA for 9259cb4
spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/SqlGeneratorSource.java
@@ -19,6 +19,7 @@
19
20
import java.util.HashMap;
21
import java.util.Map;
22
+import java.util.concurrent.ConcurrentHashMap;
23
24
import org.springframework.data.relational.core.mapping.RelationalMappingContext;
25
@@ -31,7 +32,7 @@
31
32
@RequiredArgsConstructor
33
public class SqlGeneratorSource {
34
- private final Map<Class, SqlGenerator> sqlGeneratorCache = new HashMap<>();
35
+ private final Map<Class, SqlGenerator> sqlGeneratorCache = new ConcurrentHashMap<>();
36
private final RelationalMappingContext context;
37
38
SqlGenerator getSqlGenerator(Class<?> domainType) {
0 commit comments