From 0f8b1e0a7be6ab96e7ad865f754ce2400758648d Mon Sep 17 00:00:00 2001 From: Hugo Marcellin Date: Wed, 29 Nov 2023 12:20:52 +0100 Subject: [PATCH] Optimize result deletion by defining explicit query --- pom.xml | 7 ++ .../SensitivityAnalysisResultRepository.java | 10 ++ .../repositories/SensitivityRepository.java | 5 + ...nsitivityAnalysisResultRepositoryTest.java | 103 ++++++++++++++++++ .../DatasourceProxyBeanPostProcessor.java | 79 ++++++++++++++ .../server/util/TestUtils.java | 22 ++++ 6 files changed, 226 insertions(+) create mode 100644 src/test/java/org/gridsuite/sensitivityanalysis/server/repositories/SensitivityAnalysisResultRepositoryTest.java create mode 100644 src/test/java/org/gridsuite/sensitivityanalysis/server/util/DatasourceProxyBeanPostProcessor.java create mode 100644 src/test/java/org/gridsuite/sensitivityanalysis/server/util/TestUtils.java diff --git a/pom.xml b/pom.xml index c94c608f..be8ef9bb 100644 --- a/pom.xml +++ b/pom.xml @@ -48,6 +48,7 @@ 28 org.gridsuite.sensitivityanalysis.server 3.11.1 + 1.0.5 @@ -267,6 +268,12 @@ h2 test + + com.vladmihalcea + db-util + ${db-util.version} + test +