From 527b4d4e180645bd43d61accd2da832a2891a54b Mon Sep 17 00:00:00 2001 From: Fouad Almalki Date: Wed, 5 Apr 2023 06:12:57 +0300 Subject: [PATCH 1/3] Bump Hibernate version to 6.2.0.Final --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c77686453f..3850ae9963 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ 4.10.1 3.0.3 - 6.1.4.Final + 6.2.0.Final 2.7.1 4.5 8.0.31 From e3649dee880e65ac8a66fc905f8439fe3c9d71e7 Mon Sep 17 00:00:00 2001 From: Fouad Almalki Date: Wed, 5 Apr 2023 08:02:23 +0300 Subject: [PATCH 2/3] Bump EclipseLink version to 4.0.1 To align with Hibernate 6.2.0 which uses jakarta.persistence-api 3.1.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3850ae9963..4c8a801897 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ 4.10.1 - 3.0.3 + 4.0.1 6.2.0.Final 2.7.1 4.5 From 3fbdbf91f4becd41bbb31f18249d5cb2ea32e941 Mon Sep 17 00:00:00 2001 From: Fouad Almalki Date: Wed, 5 Apr 2023 08:08:41 +0300 Subject: [PATCH 3/3] Remove deprecated PostgreSQL91Dialect --- .../procedures/PostgresStoredProcedureIntegrationTests.java | 6 +++--- ...PostgresStoredProcedureNullHandlingIntegrationTests.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/procedures/PostgresStoredProcedureIntegrationTests.java b/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/procedures/PostgresStoredProcedureIntegrationTests.java index 48907cbccb..88e560b128 100644 --- a/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/procedures/PostgresStoredProcedureIntegrationTests.java +++ b/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/procedures/PostgresStoredProcedureIntegrationTests.java @@ -35,7 +35,7 @@ import javax.sql.DataSource; -import org.hibernate.dialect.PostgreSQL91Dialect; +import org.hibernate.dialect.PostgreSQLDialect; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.postgresql.ds.PGSimpleDataSource; @@ -201,7 +201,7 @@ static class Config { @Bean(initMethod = "start", destroyMethod = "stop") public PostgreSQLContainer container() { - return new PostgreSQLContainer<>("postgres:9.6.12") // + return new PostgreSQLContainer<>("postgres:10.21") // .withUsername("postgres"); } @@ -226,7 +226,7 @@ public AbstractEntityManagerFactoryBean entityManagerFactory(DataSource dataSour Properties properties = new Properties(); properties.setProperty("hibernate.hbm2ddl.auto", "create"); - properties.setProperty("hibernate.dialect", PostgreSQL91Dialect.class.getCanonicalName()); + properties.setProperty("hibernate.dialect", PostgreSQLDialect.class.getCanonicalName()); factoryBean.setJpaProperties(properties); return factoryBean; diff --git a/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/procedures/PostgresStoredProcedureNullHandlingIntegrationTests.java b/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/procedures/PostgresStoredProcedureNullHandlingIntegrationTests.java index 2d508020d3..10aa204f37 100644 --- a/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/procedures/PostgresStoredProcedureNullHandlingIntegrationTests.java +++ b/spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/procedures/PostgresStoredProcedureNullHandlingIntegrationTests.java @@ -31,7 +31,7 @@ import javax.sql.DataSource; -import org.hibernate.dialect.PostgreSQL91Dialect; +import org.hibernate.dialect.PostgreSQLDialect; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.postgresql.ds.PGSimpleDataSource; @@ -109,7 +109,7 @@ static class Config { @Bean(initMethod = "start", destroyMethod = "stop") public PostgreSQLContainer container() { - return new PostgreSQLContainer<>("postgres:9.6.12") // + return new PostgreSQLContainer<>("postgres:10.21") // .withUsername("postgres"); } @@ -135,7 +135,7 @@ public AbstractEntityManagerFactoryBean entityManagerFactory(DataSource dataSour Properties properties = new Properties(); properties.setProperty("hibernate.hbm2ddl.auto", "create"); - properties.setProperty("hibernate.dialect", PostgreSQL91Dialect.class.getCanonicalName()); + properties.setProperty("hibernate.dialect", PostgreSQLDialect.class.getCanonicalName()); properties.setProperty("hibernate.proc.param_null_passing", "true"); properties.setProperty("hibernate.globally_quoted_identifiers", "true"); properties.setProperty("hibernate.globally_quoted_identifiers_skip_column_definitions", "true");