From 8fee057de326f395f67547e21fa62bbd717f0935 Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Sun, 20 Sep 2015 10:18:33 -0400 Subject: [PATCH] Bump Spring and Hibernate versions --- hapi-fhir-jpaserver-base/pom.xml | 2 -- .../jpa/util/HapiDerbyTenSevenDialect.java | 16 ++++++++++++ .../src/main/resources/fhir-spring-config.xml | 2 +- .../test/resources/META-INF/persistence.xml | 5 ---- .../fhir-jpabase-spring-test-config.xml | 2 +- .../hapi-fhir-server-database-config.xml | 2 +- .../META-INF/fhirtest_persistence.xml | 2 +- ...hapi-fhir-server-database-config-dstu1.xml | 2 +- ...hapi-fhir-server-database-config-dstu2.xml | 2 +- .../resources/fhir-spring-test-config.xml | 2 +- .../resources/fhir_jpatest_persistence.xml | 2 +- .../test/resources/META-INF/persistence.xml | 2 +- .../fhir-jpabase-spring-test-config.xml | 2 +- pom.xml | 26 ++++++++++++++----- src/changes/changes.xml | 10 +++++++ 15 files changed, 55 insertions(+), 24 deletions(-) create mode 100644 hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/HapiDerbyTenSevenDialect.java diff --git a/hapi-fhir-jpaserver-base/pom.xml b/hapi-fhir-jpaserver-base/pom.xml index 6b9aa9ac6a6..9237ebd9ce4 100644 --- a/hapi-fhir-jpaserver-base/pom.xml +++ b/hapi-fhir-jpaserver-base/pom.xml @@ -287,7 +287,6 @@ de.juplo hibernate4-maven-plugin - 1.0.5 true SCRIPT @@ -417,7 +416,6 @@ org.apache.maven.plugins maven-jxr-plugin - ${maven_jxr_plugin_version} diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/HapiDerbyTenSevenDialect.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/HapiDerbyTenSevenDialect.java new file mode 100644 index 00000000000..c71c054a85f --- /dev/null +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/HapiDerbyTenSevenDialect.java @@ -0,0 +1,16 @@ +package ca.uhn.fhir.jpa.util; + +import org.hibernate.dialect.DerbyTenSevenDialect; + +/** + * As of Hibernate 5.0.1, DerbyTenSevenDialect doesn't seem to work when updating + * the schema, as it tries to create a duplicate schema + */ +public class HapiDerbyTenSevenDialect extends DerbyTenSevenDialect { + + @Override + public String getQuerySequencesString() { + return "select SEQUENCENAME from sys.syssequences"; + } + +} diff --git a/hapi-fhir-jpaserver-base/src/main/resources/fhir-spring-config.xml b/hapi-fhir-jpaserver-base/src/main/resources/fhir-spring-config.xml index 05bfbe60266..31c1630d367 100644 --- a/hapi-fhir-jpaserver-base/src/main/resources/fhir-spring-config.xml +++ b/hapi-fhir-jpaserver-base/src/main/resources/fhir-spring-config.xml @@ -35,7 +35,7 @@ - + diff --git a/hapi-fhir-jpaserver-base/src/test/resources/META-INF/persistence.xml b/hapi-fhir-jpaserver-base/src/test/resources/META-INF/persistence.xml index 6feb16c727e..f990e6c30cf 100644 --- a/hapi-fhir-jpaserver-base/src/test/resources/META-INF/persistence.xml +++ b/hapi-fhir-jpaserver-base/src/test/resources/META-INF/persistence.xml @@ -25,12 +25,7 @@ false - - - - - diff --git a/hapi-fhir-jpaserver-base/src/test/resources/fhir-jpabase-spring-test-config.xml b/hapi-fhir-jpaserver-base/src/test/resources/fhir-jpabase-spring-test-config.xml index cc840460f79..3ff4d8ca889 100644 --- a/hapi-fhir-jpaserver-base/src/test/resources/fhir-jpabase-spring-test-config.xml +++ b/hapi-fhir-jpaserver-base/src/test/resources/fhir-jpabase-spring-test-config.xml @@ -33,7 +33,7 @@ - + diff --git a/hapi-fhir-jpaserver-example/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml b/hapi-fhir-jpaserver-example/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml index 8e993d11811..c2dafc4915c 100644 --- a/hapi-fhir-jpaserver-example/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml +++ b/hapi-fhir-jpaserver-example/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml @@ -40,7 +40,7 @@ - + diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/META-INF/fhirtest_persistence.xml b/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/META-INF/fhirtest_persistence.xml index 8c4c112e780..a1d85bfa9c8 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/META-INF/fhirtest_persistence.xml +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/META-INF/fhirtest_persistence.xml @@ -24,7 +24,7 @@ true - + diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/hapi-fhir-server-database-config-dstu1.xml b/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/hapi-fhir-server-database-config-dstu1.xml index 40f2e402ccb..13c6c5fdad2 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/hapi-fhir-server-database-config-dstu1.xml +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/hapi-fhir-server-database-config-dstu1.xml @@ -44,7 +44,7 @@ - + diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/hapi-fhir-server-database-config-dstu2.xml b/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/hapi-fhir-server-database-config-dstu2.xml index 0d67234ab21..95fbacb6f31 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/hapi-fhir-server-database-config-dstu2.xml +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/main/resources/hapi-fhir-server-database-config-dstu2.xml @@ -31,7 +31,7 @@ - + diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/test/resources/fhir-spring-test-config.xml b/hapi-fhir-jpaserver-uhnfhirtest/src/test/resources/fhir-spring-test-config.xml index 6f24773a275..7e98295ef90 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/src/test/resources/fhir-spring-test-config.xml +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/test/resources/fhir-spring-test-config.xml @@ -42,7 +42,7 @@ - + diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/test/resources/fhir_jpatest_persistence.xml b/hapi-fhir-jpaserver-uhnfhirtest/src/test/resources/fhir_jpatest_persistence.xml index cd25b565b8d..56306183fa6 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/src/test/resources/fhir_jpatest_persistence.xml +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/test/resources/fhir_jpatest_persistence.xml @@ -21,7 +21,7 @@ - + diff --git a/hapi-fhir-testpage-overlay/src/test/resources/META-INF/persistence.xml b/hapi-fhir-testpage-overlay/src/test/resources/META-INF/persistence.xml index 6feb16c727e..3dcefdcd452 100644 --- a/hapi-fhir-testpage-overlay/src/test/resources/META-INF/persistence.xml +++ b/hapi-fhir-testpage-overlay/src/test/resources/META-INF/persistence.xml @@ -27,7 +27,7 @@ - + diff --git a/hapi-fhir-testpage-overlay/src/test/resources/fhir-jpabase-spring-test-config.xml b/hapi-fhir-testpage-overlay/src/test/resources/fhir-jpabase-spring-test-config.xml index 2a8f7ae311b..65e49701718 100644 --- a/hapi-fhir-testpage-overlay/src/test/resources/fhir-jpabase-spring-test-config.xml +++ b/hapi-fhir-testpage-overlay/src/test/resources/fhir-jpabase-spring-test-config.xml @@ -38,7 +38,7 @@ - + diff --git a/pom.xml b/pom.xml index bcc3c08f1e7..574f0aa7cba 100644 --- a/pom.xml +++ b/pom.xml @@ -214,15 +214,13 @@ 10.11.1.1 - 4.2.17.Final - 5.1.0.Final + for that plugin... --> + 5.0.1.Final + 5.2.1.Final 9.2.6.v20141205 1.9.1 2.5.3 2.18.1 - 1.6 - 2.5 1.8 2.8 2.18.1 @@ -231,7 +229,7 @@ 1.1.8 2.7.1 4.3.6 - 4.1.5.RELEASE + 4.2.1.RELEASE 2.1.4.RELEASE 1.0.1 1.6 @@ -541,6 +539,11 @@ + + de.juplo + hibernate4-maven-plugin + 1.1.0 + org.apache.felix maven-bundle-plugin @@ -590,11 +593,21 @@ maven-deploy-plugin 2.8.2 + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + org.apache.maven.plugins maven-javadoc-plugin 2.10.1 + + org.apache.maven.plugins + maven-jxr-plugin + 2.5 + org.apache.maven.plugins maven-failsafe-plugin @@ -1223,7 +1236,6 @@ org.apache.maven.plugins maven-gpg-plugin - ${maven_gpg_plugin_version} sign-artifacts diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 5de0f193023..500eda8e512 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -8,6 +8,16 @@ + Bump the version of a few dependencies to the + latest versions (dependent HAPI modules listed in brackets): + +
  • Springframework (JPA, Web Tester): 4.1.5 -> 4.2.1
  • +
  • Hibernate (JPA, Web Tester): 4.2.17 -> 5.0.1
  • + + ]]> +
    + JPA server removes duplicate resource index entries before storing them (e.g. if a patient has the same name twice, only one index entry is created for that name)