JAVA-20164 Upgrade java hibernate specific modules to JDK 11 (#13900)

* JAVA-20164 Upgrade java hibernate specific modules to JDK 11

* JAVA-20164 Migrating java-jpa-2

* JAVA-20164 Migrating jnosql-artemis

* JAVA-20164 Migrating querydsl

* JAVA-20164 Migrating r2dbc

* JAVA-20164 Migrating redis

* JAVA-20164 Fixing test JPATextUnitTest#givenExam_whenSaveExam_thenReturnExpectedExam

* JAVA-20164 Fixing givenIdentityStrategy_whenCommitTransction_thenReturnPrimaryKey

* JAVA-20164 Changes after review

* JAVA-20164 Migrating java-cassandra to jdk8

* JAVA-20164 Fix legacy mode error

* Update pom.xml

---------

Co-authored-by: timis1 <noreplay@yahoo.com>
Co-authored-by: Dhawal Kapil <dhawalkapil@gmail.com>
This commit is contained in:
timis1
2023-05-19 11:37:45 +03:00
committed by GitHub
parent 09e421c3cd
commit e624a6c893
93 changed files with 637 additions and 677 deletions
@@ -29,9 +29,8 @@ public class DatasourceConfig {
if ( !StringUtil.isNullOrEmpty(properties.getPassword())) {
ob = ob.option(PASSWORD, properties.getPassword());
}
ConnectionFactory cf = ConnectionFactories.get(ob.build());
return cf;
return ConnectionFactories.get(ob.build());
}
@@ -9,6 +9,8 @@ spring:
flyway:
url: jdbc:postgresql://localhost:8082/flyway-test-db
locations: classpath:db/postgres/migration
main:
allow-bean-definition-overriding: true
# R2DBC URL
r2dbc:
url: r2dbc:h2:mem://./testdb
@@ -55,9 +55,7 @@ public class R2dbcExampleApplicationIntegrationTest {
.expectStatus()
.isOk()
.expectBody(Account.class)
.value((acc) -> {
assertThat(acc.getId(),is(1l));
});
.value((acc) -> assertThat(acc.getId(),is(1L)));
}
@Test
@@ -71,9 +69,7 @@ public class R2dbcExampleApplicationIntegrationTest {
.expectStatus()
.isOk()
.expectBody(List.class)
.value((accounts) -> {
assertThat(accounts.size(),not(is(0)));
});
.value((accounts) -> assertThat(accounts.size(),not(is(0))));
}
@@ -89,9 +85,7 @@ public class R2dbcExampleApplicationIntegrationTest {
.expectStatus()
.is2xxSuccessful()
.expectBody(Account.class)
.value((acc) -> {
assertThat(acc.getId(),is(notNullValue()));
});
.value((acc) -> assertThat(acc.getId(),is(notNullValue())));
}