Skip to content

Commit 985229f

Browse files
committed
HHH-10662 - Fix inconsistencies between quoting-related configuration properties JavaDocs and their default values assigned at the code level
1 parent de6d80a commit 985229f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public interface AvailableSettings {
399399

400400
/**
401401
* Specifies whether to automatically quote any names that are deemed keywords. Auto-quoting
402-
* is enabled by default. Set to false to disable.
402+
* is disabled by default. Set to true to enable it.
403403
*
404404
* @since 5.0
405405
*/

hibernate-core/src/main/java/org/hibernate/engine/jdbc/env/internal/JdbcEnvironmentImpl.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
import org.hibernate.exception.internal.SQLExceptionTypeDelegate;
3333
import org.hibernate.exception.internal.SQLStateConversionDelegate;
3434
import org.hibernate.exception.internal.StandardSQLExceptionConverter;
35-
import org.hibernate.internal.util.config.ConfigurationHelper;
3635
import org.hibernate.service.ServiceRegistry;
3736
import org.hibernate.service.spi.ServiceRegistryImplementor;
37+
3838
import org.jboss.logging.Logger;
3939

4040
/**
@@ -128,8 +128,7 @@ private boolean globalQuotingSkippedForColumnDefinitions(ConfigurationService cf
128128
return cfgService.getSetting(
129129
AvailableSettings.GLOBALLY_QUOTED_IDENTIFIERS_SKIP_COLUMN_DEFINITIONS,
130130
StandardConverters.BOOLEAN,
131-
// default is true for JPA compliance - DO NOT CHANGE!
132-
true
131+
false
133132
);
134133
}
135134

0 commit comments

Comments
 (0)