From 5aa9fe12bac7ff71d735ea58f35a7cfee24717d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Fri, 10 Jan 2025 16:05:49 +0100 Subject: [PATCH] Work around https://hibernate.atlassian.net/browse/HHH-19033 --- .../src/main/java/HibernateOrmDerbyProcessor.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/extensions/hibernate-orm-derby/deployment/src/main/java/HibernateOrmDerbyProcessor.java b/extensions/hibernate-orm-derby/deployment/src/main/java/HibernateOrmDerbyProcessor.java index c2e9cccb5e0dc..b8ca0102adc6c 100644 --- a/extensions/hibernate-orm-derby/deployment/src/main/java/HibernateOrmDerbyProcessor.java +++ b/extensions/hibernate-orm-derby/deployment/src/main/java/HibernateOrmDerbyProcessor.java @@ -1,5 +1,3 @@ -import java.util.Set; - import org.hibernate.community.dialect.CommunityDialectResolver; import org.hibernate.engine.jdbc.dialect.spi.DialectResolver; @@ -11,8 +9,9 @@ public final class HibernateOrmDerbyProcessor { @BuildStep public DatabaseKindDialectBuildItem registerHibernateOrmMetadataForDerbyDialect() { - return DatabaseKindDialectBuildItem.forCoreDialect(DatabaseKind.DERBY, "Apache Derby", - Set.of("org.hibernate.community.dialect.DerbyDialect")); + // We should use `forCoreDialect`, but can't because of https://hibernate.atlassian.net/browse/HHH-19033 + return DatabaseKindDialectBuildItem.forThirdPartyDialect(DatabaseKind.DERBY, + "org.hibernate.community.dialect.DerbyDialect"); } @BuildStep