Skip to content

Commit 5cbb5d4

Browse files
committed
Upgrade to Hibernate ORM 7.0.0.Beta3 and Validator 9.0.0.CR1
Using relocated Maven coordinates. See gh-33750
1 parent 30d249c commit 5cbb5d4

File tree

9 files changed

+10
-22
lines changed

9 files changed

+10
-22
lines changed

Diff for: framework-platform/framework-platform.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ dependencies {
125125
api("org.glassfish:jakarta.el:4.0.2")
126126
api("org.graalvm.sdk:graal-sdk:22.3.1")
127127
api("org.hamcrest:hamcrest:2.2")
128-
api("org.hibernate:hibernate-core:7.0.0.Beta2")
129-
api("org.hibernate:hibernate-validator:9.0.0.Beta3")
128+
api("org.hibernate.orm:hibernate-core:7.0.0.Beta3")
129+
api("org.hibernate.validator:hibernate-validator:9.0.0.CR1")
130130
api("org.hsqldb:hsqldb:2.7.4")
131131
api("org.htmlunit:htmlunit:4.6.0")
132132
api("org.javamoney:moneta:1.4.4")

Diff for: integration-tests/integration-tests.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies {
2626
testImplementation("jakarta.servlet:jakarta.servlet-api")
2727
testImplementation("org.aspectj:aspectjweaver")
2828
testImplementation("org.hsqldb:hsqldb")
29-
testImplementation("org.hibernate:hibernate-core")
29+
testImplementation("org.hibernate.orm:hibernate-core")
3030
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
3131
}
3232

Diff for: spring-context/spring-context.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies {
2626
optional("org.apache-extras.beanshell:bsh")
2727
optional("org.aspectj:aspectjweaver")
2828
optional("org.crac:crac")
29-
optional("org.hibernate:hibernate-validator")
29+
optional("org.hibernate.validator:hibernate-validator")
3030
optional("org.jetbrains.kotlin:kotlin-reflect")
3131
optional("org.jetbrains.kotlin:kotlin-stdlib")
3232
optional("org.jetbrains.kotlinx:kotlinx-coroutines-core")

Diff for: spring-orm/spring-orm.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies {
1111
optional(project(":spring-web"))
1212
optional("jakarta.servlet:jakarta.servlet-api")
1313
optional("org.eclipse.persistence:org.eclipse.persistence.jpa")
14-
optional("org.hibernate:hibernate-core")
14+
optional("org.hibernate.orm:hibernate-core")
1515
testImplementation(project(":spring-core-test"))
1616
testImplementation(testFixtures(project(":spring-beans")))
1717
testImplementation(testFixtures(project(":spring-context")))

Diff for: spring-orm/src/main/java/org/springframework/orm/hibernate5/LocalSessionFactoryBuilder.java

-12
Original file line numberDiff line numberDiff line change
@@ -285,18 +285,6 @@ public LocalSessionFactoryBuilder setEntityTypeFilters(TypeFilter... entityTypeF
285285
return this;
286286
}
287287

288-
/**
289-
* Add the given annotated classes in a batch.
290-
* @see #addAnnotatedClass
291-
* @see #scanPackages
292-
*/
293-
public LocalSessionFactoryBuilder addAnnotatedClasses(Class<?>... annotatedClasses) {
294-
for (Class<?> annotatedClass : annotatedClasses) {
295-
addAnnotatedClass(annotatedClass);
296-
}
297-
return this;
298-
}
299-
300288
/**
301289
* Add the given annotated packages in a batch.
302290
* @see #addPackage

Diff for: spring-test/spring-test.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ dependencies {
7777
}
7878
testImplementation("org.awaitility:awaitility")
7979
testImplementation("org.easymock:easymock")
80-
testImplementation("org.hibernate:hibernate-core")
81-
testImplementation("org.hibernate:hibernate-validator")
80+
testImplementation("org.hibernate.orm:hibernate-core")
81+
testImplementation("org.hibernate.validator:hibernate-validator")
8282
testImplementation("org.hsqldb:hsqldb")
8383
testImplementation("org.junit.platform:junit-platform-testkit")
8484
testRuntimeOnly("com.sun.xml.bind:jaxb-core")

Diff for: spring-web/spring-web.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ dependencies {
9999
testRuntimeOnly("org.eclipse.angus:angus-mail")
100100
testRuntimeOnly("org.eclipse:yasson")
101101
testRuntimeOnly("org.glassfish:jakarta.el")
102-
testRuntimeOnly("org.hibernate:hibernate-validator")
102+
testRuntimeOnly("org.hibernate.validator:hibernate-validator")
103103
}

Diff for: spring-webflux/spring-webflux.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dependencies {
5252
testImplementation("org.apache.tomcat.embed:tomcat-embed-core")
5353
testImplementation("org.eclipse.jetty:jetty-reactive-httpclient")
5454
testImplementation("org.eclipse.jetty:jetty-server")
55-
testImplementation("org.hibernate:hibernate-validator")
55+
testImplementation("org.hibernate.validator:hibernate-validator")
5656
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json")
5757
testRuntimeOnly("com.sun.xml.bind:jaxb-core")
5858
testRuntimeOnly("com.sun.xml.bind:jaxb-impl")

Diff for: spring-webmvc/spring-webmvc.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ dependencies {
5959
testImplementation("org.eclipse.jetty.ee10:jetty-ee10-servlet") {
6060
exclude group: "jakarta.servlet", module: "jakarta.servlet-api"
6161
}
62-
testImplementation("org.hibernate:hibernate-validator")
62+
testImplementation("org.hibernate.validator:hibernate-validator")
6363
testImplementation("org.mozilla:rhino")
6464
testImplementation("org.skyscreamer:jsonassert")
6565
testImplementation("org.xmlunit:xmlunit-assertj")

0 commit comments

Comments
 (0)