Skip to content

Commit 837327f

Browse files
committed
Merge branch '6.0.x'
# Conflicts: # build.gradle
2 parents e224c71 + 4be813b commit 837327f

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

framework-platform/framework-platform.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ javaPlatform {
99
dependencies {
1010
api(platform("com.fasterxml.jackson:jackson-bom:2.14.3"))
1111
api(platform("io.micrometer:micrometer-bom:1.10.7"))
12-
api(platform("io.netty:netty-bom:4.1.92.Final"))
12+
api(platform("io.netty:netty-bom:4.1.93.Final"))
1313
api(platform("io.netty:netty5-bom:5.0.0.Alpha5"))
1414
api(platform("io.projectreactor:reactor-bom:2022.0.7"))
1515
api(platform("io.rsocket:rsocket-bom:1.1.3"))
16-
api(platform("org.apache.groovy:groovy-bom:4.0.11"))
16+
api(platform("org.apache.groovy:groovy-bom:4.0.12"))
1717
api(platform("org.apache.logging.log4j:log4j-bom:2.20.0"))
1818
api(platform("org.eclipse.jetty:jetty-bom:11.0.15"))
1919
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1"))
@@ -29,7 +29,7 @@ dependencies {
2929
api("com.google.code.findbugs:findbugs:3.0.1")
3030
api("com.google.code.findbugs:jsr305:3.0.2")
3131
api("com.google.code.gson:gson:2.10.1")
32-
api("com.google.protobuf:protobuf-java-util:3.23.0")
32+
api("com.google.protobuf:protobuf-java-util:3.23.2")
3333
api("com.googlecode.protobuf-java-format:protobuf-java-format:1.4")
3434
api("com.h2database:h2:2.1.214")
3535
api("com.jayway.jsonpath:json-path:2.8.0")
@@ -45,7 +45,7 @@ dependencies {
4545
api("com.thoughtworks.xstream:xstream:1.4.20")
4646
api("commons-io:commons-io:2.11.0")
4747
api("de.bechte.junit:junit-hierarchicalcontextrunner:4.12.2")
48-
api("info.picocli:picocli:4.7.3")
48+
api("info.picocli:picocli:4.7.4")
4949
api("io.micrometer:context-propagation:1.0.0")
5050
api("io.mockk:mockk:1.13.4")
5151
api("io.projectreactor.netty:reactor-netty5-http:2.0.0-M3")
@@ -55,9 +55,9 @@ dependencies {
5555
api("io.r2dbc:r2dbc-spi:1.0.0.RELEASE")
5656
api("io.reactivex.rxjava3:rxjava:3.1.6")
5757
api("io.smallrye.reactive:mutiny:1.9.0")
58-
api("io.undertow:undertow-core:2.3.5.Final")
59-
api("io.undertow:undertow-servlet:2.3.5.Final")
60-
api("io.undertow:undertow-websockets-jsr:2.3.5.Final")
58+
api("io.undertow:undertow-core:2.3.6.Final")
59+
api("io.undertow:undertow-servlet:2.3.6.Final")
60+
api("io.undertow:undertow-websockets-jsr:2.3.6.Final")
6161
api("io.vavr:vavr:0.10.4")
6262
api("jakarta.activation:jakarta.activation-api:2.0.1")
6363
api("jakarta.annotation:jakarta.annotation-api:2.0.0")
@@ -99,8 +99,8 @@ dependencies {
9999
api("org.apache.httpcomponents.client5:httpclient5:5.2.1")
100100
api("org.apache.httpcomponents.core5:httpcore5-reactive:5.2.1")
101101
api("org.apache.poi:poi-ooxml:5.2.3")
102-
api("org.apache.tomcat.embed:tomcat-embed-core:10.1.8")
103-
api("org.apache.tomcat.embed:tomcat-embed-websocket:10.1.8")
102+
api("org.apache.tomcat.embed:tomcat-embed-core:10.1.9")
103+
api("org.apache.tomcat.embed:tomcat-embed-websocket:10.1.9")
104104
api("org.apache.tomcat:tomcat-util:10.1.8")
105105
api("org.apache.tomcat:tomcat-websocket:10.1.8")
106106
api("org.aspectj:aspectjrt:1.9.19")

spring-orm/src/main/java/org/springframework/orm/jpa/vendor/EclipseLinkJpaDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public Object beginTransaction(EntityManager entityManager, TransactionDefinitio
110110
}
111111
}
112112

113-
return entityManager;
113+
return null;
114114
}
115115

116116
@Override

spring-orm/src/test/java/org/springframework/orm/jpa/AbstractContainerEntityManagerFactoryIntegrationTests.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,8 +26,10 @@
2626
import org.junit.jupiter.api.Test;
2727

2828
import org.springframework.core.testfixture.io.SerializationTestUtils;
29+
import org.springframework.jdbc.datasource.DataSourceUtils;
2930
import org.springframework.orm.jpa.domain.DriversLicense;
3031
import org.springframework.orm.jpa.domain.Person;
32+
import org.springframework.transaction.TransactionDefinition;
3133

3234
import static org.assertj.core.api.Assertions.assertThat;
3335
import static org.assertj.core.api.Assertions.assertThatException;
@@ -113,24 +115,34 @@ public void testGetReferenceWhenNoRow() {
113115
}
114116

115117
@Test
116-
public void testLazyLoading() {
118+
public void testLazyLoading() throws Exception {
117119
try {
118120
Person tony = new Person();
119121
tony.setFirstName("Tony");
120122
tony.setLastName("Blair");
121123
tony.setDriversLicense(new DriversLicense("8439DK"));
122124
sharedEntityManager.persist(tony);
125+
assertThat(DataSourceUtils.getConnection(jdbcTemplate.getDataSource()).getTransactionIsolation())
126+
.isEqualTo(TransactionDefinition.ISOLATION_READ_COMMITTED);
123127
setComplete();
124128
endTransaction();
125129

130+
transactionDefinition.setIsolationLevel(TransactionDefinition.ISOLATION_SERIALIZABLE);
126131
startNewTransaction();
132+
assertThat(DataSourceUtils.getConnection(jdbcTemplate.getDataSource()).getTransactionIsolation())
133+
.isEqualTo(TransactionDefinition.ISOLATION_SERIALIZABLE);
127134
sharedEntityManager.clear();
128135
Person newTony = entityManagerFactory.createEntityManager().getReference(Person.class, tony.getId());
129136
assertThat(tony).isNotSameAs(newTony);
130137
endTransaction();
131138

132-
assertThat(newTony.getDriversLicense()).isNotNull();
139+
transactionDefinition.setIsolationLevel(TransactionDefinition.ISOLATION_DEFAULT);
140+
startNewTransaction();
141+
assertThat(DataSourceUtils.getConnection(jdbcTemplate.getDataSource()).getTransactionIsolation())
142+
.isEqualTo(TransactionDefinition.ISOLATION_READ_COMMITTED);
143+
endTransaction();
133144

145+
assertThat(newTony.getDriversLicense()).isNotNull();
134146
newTony.getDriversLicense().getSerialNumber();
135147
}
136148
finally {

0 commit comments

Comments
 (0)