Skip to content

Commit beb3a91

Browse files
committed
Upgrade to Hibernate ORM 7.0.0.Beta4
Includes Hamcrest 3.0 See gh-33750
1 parent 4d955f9 commit beb3a91

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ dependencies {
123123
api("org.glassfish.external:opendmk_jmxremote_optional_jar:1.0-b01-ea")
124124
api("org.glassfish:jakarta.el:4.0.2")
125125
api("org.graalvm.sdk:graal-sdk:22.3.1")
126-
api("org.hamcrest:hamcrest:2.2")
127-
api("org.hibernate.orm:hibernate-core:7.0.0.Beta3")
126+
api("org.hamcrest:hamcrest:3.0")
127+
api("org.hibernate.orm:hibernate-core:7.0.0.Beta4")
128128
api("org.hibernate.validator:hibernate-validator:9.0.0.CR1")
129129
api("org.hsqldb:hsqldb:2.7.4")
130130
api("org.htmlunit:htmlunit:4.10.0")

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

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -259,6 +259,12 @@ public B getBeanInstance() {
259259
return this.beanInstance;
260260
}
261261

262+
@Override
263+
@SuppressWarnings("unchecked")
264+
public Class<B> getBeanClass() {
265+
return (Class<B>) this.beanInstance.getClass();
266+
}
267+
262268
public void destroyIfNecessary() {
263269
if (this.destructionCallback != null) {
264270
this.destructionCallback.accept(this.beanInstance);

0 commit comments

Comments
 (0)