Skip to content

Commit 3ec3c5f

Browse files
committed
Upgrade to Hibernate ORM 6.6.3.Final
1 parent e6dfe7a commit 3ec3c5f

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ClassNames.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ private static DotName createConstant(String fqcn) {
455455
createConstant("java.util.UUID"),
456456
createConstant("java.lang.Void"));
457457

458+
public static final List<DotName> STANDARD_STACK_ELEMENT_TYPES = List.of(
459+
createConstant("org.hibernate.query.sqm.tree.select.SqmQueryPart"));
460+
458461
public static final DotName HIBERNATE_ORM_PROCESSOR = createConstant(
459462
"io.quarkus.hibernate.orm.deployment.HibernateOrmProcessor");
460463

extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/GraalVMFeatures.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,14 @@ ReflectiveClassBuildItem registerJdbcArrayTypesForReflection() {
3939
.build();
4040
}
4141

42+
// Workaround for https://hibernate.atlassian.net/browse/HHH-18875
43+
// See https://hibernate.zulipchat.com/#narrow/channel/132094-hibernate-orm-dev/topic/StandardStack.20and.20reflection
44+
@BuildStep
45+
ReflectiveClassBuildItem registerStandardStackElementTypesForReflection() {
46+
return ReflectiveClassBuildItem
47+
.builder(ClassNames.STANDARD_STACK_ELEMENT_TYPES.stream().map(d -> d.toString() + "[]").toArray(String[]::new))
48+
.reason("Workaround for https://hibernate.atlassian.net/browse/HHH-18875")
49+
.build();
50+
}
51+
4252
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<jacoco.version>0.8.12</jacoco.version>
7272
<kubernetes-client.version>6.13.4</kubernetes-client.version> <!-- Please check with Java Operator SDK team before updating -->
7373
<rest-assured.version>5.5.0</rest-assured.version>
74-
<hibernate-orm.version>6.6.2.Final</hibernate-orm.version> <!-- WARNING when updating, also align the versions below -->
74+
<hibernate-orm.version>6.6.3.Final</hibernate-orm.version> <!-- WARNING when updating, also align the versions below -->
7575
<antlr.version>4.13.0</antlr.version> <!-- version controlled by Hibernate ORM's needs -->
7676
<bytebuddy.version>1.14.18</bytebuddy.version> <!-- version controlled by Hibernate ORM's needs -->
7777
<hibernate-commons-annotations.version>7.0.3.Final</hibernate-commons-annotations.version> <!-- version controlled by Hibernate ORM's needs -->

0 commit comments

Comments
 (0)