From 07de23d2834ab5064cb545bda917eed0cd07b2ae Mon Sep 17 00:00:00 2001 From: Gavin Date: Sat, 26 Nov 2022 00:07:55 +0100 Subject: [PATCH] add javadoc about hibernate.dialect --- .../registry/selector/internal/StrategySelectorImpl.java | 1 - .../main/java/org/hibernate/cfg/AvailableSettings.java | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorImpl.java b/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorImpl.java index 21d80de3b3..f86b8077b3 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorImpl.java @@ -13,7 +13,6 @@ import java.util.Iterator; import java.util.Map; import java.util.concurrent.Callable; import java.util.concurrent.ConcurrentHashMap; -import java.util.function.Function; import org.hibernate.HibernateException; import org.hibernate.boot.registry.classloading.spi.ClassLoaderService; diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java b/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java index 259af9ea09..5bcc69c4b0 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java @@ -406,7 +406,14 @@ public interface AvailableSettings { String JNDI_PREFIX = "hibernate.jndi"; /** - * Specifies the Hibernate SQL {@link org.hibernate.dialect.Dialect} class. + * Specifies the Hibernate {@linkplain org.hibernate.dialect.Dialect SQL dialect}, either + * + * By default, Hibernate will attempt to automatically determine the dialect from the + * {@linkplain #URL JDBC URL} and JDBC metadata, so this setting is not usually necessary. * * @see org.hibernate.dialect.Dialect */