From 49f890d781dfb5822c72ccc9003d6977c5777ec2 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Wed, 28 Jun 2023 16:33:25 +0200 Subject: [PATCH] move NullOrdering to the Dialect package where its usages are --- .../org/hibernate/community/dialect/CockroachLegacyDialect.java | 2 +- .../java/org/hibernate/community/dialect/FirebirdDialect.java | 2 +- .../java/org/hibernate/community/dialect/H2LegacyDialect.java | 2 +- .../java/org/hibernate/community/dialect/HSQLLegacyDialect.java | 2 +- .../org/hibernate/community/dialect/MySQLLegacyDialect.java | 2 +- .../java/org/hibernate/community/dialect/SQLiteDialect.java | 2 +- .../main/java/org/hibernate/dialect/AbstractHANADialect.java | 1 - .../java/org/hibernate/dialect/AbstractTransactSQLDialect.java | 1 - .../src/main/java/org/hibernate/dialect/CockroachDialect.java | 1 - hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java | 1 - .../main/java/org/hibernate/dialect/DialectDelegateWrapper.java | 1 - .../src/main/java/org/hibernate/dialect/H2Dialect.java | 1 - .../src/main/java/org/hibernate/dialect/HSQLDialect.java | 1 - .../src/main/java/org/hibernate/dialect/MySQLDialect.java | 1 - .../java/org/hibernate/{query/sqm => dialect}/NullOrdering.java | 2 +- 15 files changed, 7 insertions(+), 15 deletions(-) rename hibernate-core/src/main/java/org/hibernate/{query/sqm => dialect}/NullOrdering.java (94%) diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/CockroachLegacyDialect.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/CockroachLegacyDialect.java index 2e52440563..041c533ad3 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/CockroachLegacyDialect.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/CockroachLegacyDialect.java @@ -49,7 +49,7 @@ import org.hibernate.internal.CoreMessageLogger; import org.hibernate.internal.util.JdbcExceptionHelper; import org.hibernate.query.SemanticException; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; +import org.hibernate.dialect.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.service.ServiceRegistry; import org.hibernate.sql.ast.SqlAstTranslator; diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/FirebirdDialect.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/FirebirdDialect.java index c476aa5ac9..08dab88bce 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/FirebirdDialect.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/FirebirdDialect.java @@ -61,7 +61,7 @@ import org.hibernate.metamodel.spi.RuntimeModelCreationContext; import org.hibernate.query.sqm.CastType; import org.hibernate.query.sqm.FetchClauseType; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; +import org.hibernate.dialect.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.function.SqmFunctionRegistry; import org.hibernate.query.sqm.mutation.internal.temptable.GlobalTemporaryTableInsertStrategy; diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/H2LegacyDialect.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/H2LegacyDialect.java index 8fdd9aff90..3ff0f5fc53 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/H2LegacyDialect.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/H2LegacyDialect.java @@ -50,7 +50,7 @@ import org.hibernate.metamodel.mapping.EntityMappingType; import org.hibernate.metamodel.spi.RuntimeModelCreationContext; import org.hibernate.query.sqm.FetchClauseType; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; +import org.hibernate.dialect.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.mutation.internal.temptable.BeforeUseAction; import org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableInsertStrategy; diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/HSQLLegacyDialect.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/HSQLLegacyDialect.java index b88bc490ed..728c9b0b34 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/HSQLLegacyDialect.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/HSQLLegacyDialect.java @@ -51,7 +51,7 @@ import org.hibernate.metamodel.spi.RuntimeModelCreationContext; import org.hibernate.persister.entity.Lockable; import org.hibernate.query.sqm.CastType; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; +import org.hibernate.dialect.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.mutation.internal.temptable.AfterUseAction; import org.hibernate.query.sqm.mutation.internal.temptable.BeforeUseAction; diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MySQLLegacyDialect.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MySQLLegacyDialect.java index 38b16f3cc1..81774e3d9c 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MySQLLegacyDialect.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MySQLLegacyDialect.java @@ -45,7 +45,7 @@ import org.hibernate.metamodel.mapping.EntityMappingType; import org.hibernate.metamodel.spi.RuntimeModelCreationContext; import org.hibernate.query.sqm.CastType; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; +import org.hibernate.dialect.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.function.SqmFunctionRegistry; import org.hibernate.query.sqm.mutation.internal.temptable.AfterUseAction; diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SQLiteDialect.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SQLiteDialect.java index f1d8c8f92c..2916b91eb0 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SQLiteDialect.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SQLiteDialect.java @@ -39,7 +39,7 @@ import org.hibernate.internal.util.JdbcExceptionHelper; import org.hibernate.mapping.Column; import org.hibernate.query.SemanticException; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; +import org.hibernate.dialect.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.TrimSpec; import org.hibernate.query.sqm.produce.function.StandardFunctionReturnTypeResolvers; diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java index f052357053..c5ffd4b4bd 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java @@ -82,7 +82,6 @@ import org.hibernate.procedure.internal.StandardCallableStatementSupport; import org.hibernate.procedure.spi.CallableStatementSupport; import org.hibernate.query.sqm.CastType; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.produce.function.FunctionParameterType; import org.hibernate.service.ServiceRegistry; diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/AbstractTransactSQLDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/AbstractTransactSQLDialect.java index adcfa484f3..ba2a49f1a6 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/AbstractTransactSQLDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/AbstractTransactSQLDialect.java @@ -12,7 +12,6 @@ import org.hibernate.boot.model.FunctionContributions; import org.hibernate.dialect.function.CastingConcatFunction; import org.hibernate.dialect.function.TransactSQLStrFunction; import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo; -import org.hibernate.query.sqm.NullOrdering; import org.hibernate.dialect.function.CommonFunctionFactory; import org.hibernate.dialect.function.CaseLeastGreatestEmulation; import org.hibernate.dialect.identity.AbstractTransactSQLIdentityColumnSupport; diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java index 86a19bb081..32e7aa0f85 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java @@ -48,7 +48,6 @@ import org.hibernate.internal.CoreMessageLogger; import org.hibernate.internal.util.JdbcExceptionHelper; import org.hibernate.query.SemanticException; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.service.ServiceRegistry; import org.hibernate.sql.ast.SqlAstTranslator; diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java index f9c6b25582..6fb1afbd4f 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java @@ -127,7 +127,6 @@ import org.hibernate.query.spi.QueryOptions; import org.hibernate.query.sqm.CastType; import org.hibernate.query.sqm.FetchClauseType; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.TrimSpec; import org.hibernate.query.sqm.mutation.internal.temptable.AfterUseAction; diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/DialectDelegateWrapper.java b/hibernate-core/src/main/java/org/hibernate/dialect/DialectDelegateWrapper.java index 11031863fc..64befb71da 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/DialectDelegateWrapper.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/DialectDelegateWrapper.java @@ -64,7 +64,6 @@ import org.hibernate.query.spi.QueryOptions; import org.hibernate.query.sqm.CastType; import org.hibernate.query.sqm.FetchClauseType; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.TrimSpec; import org.hibernate.query.sqm.mutation.internal.temptable.AfterUseAction; diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java index 94ecc3d699..d7e28b8cf7 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java @@ -47,7 +47,6 @@ import org.hibernate.metamodel.spi.RuntimeModelCreationContext; import org.hibernate.persister.entity.mutation.EntityMutationTarget; import org.hibernate.query.sqm.FetchClauseType; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.mutation.internal.temptable.BeforeUseAction; import org.hibernate.query.sqm.mutation.internal.temptable.LocalTemporaryTableInsertStrategy; diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java index 60e8764f9d..867e343c76 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java @@ -34,7 +34,6 @@ import org.hibernate.metamodel.mapping.EntityMappingType; import org.hibernate.metamodel.spi.RuntimeModelCreationContext; import org.hibernate.query.sqm.CastType; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.mutation.internal.temptable.AfterUseAction; import org.hibernate.query.sqm.mutation.internal.temptable.BeforeUseAction; diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java index d20bcc6b80..3167e73267 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java @@ -49,7 +49,6 @@ import org.hibernate.metamodel.mapping.EntityMappingType; import org.hibernate.metamodel.spi.RuntimeModelCreationContext; import org.hibernate.query.sqm.CastType; import org.hibernate.query.sqm.IntervalType; -import org.hibernate.query.sqm.NullOrdering; import org.hibernate.query.sqm.TemporalUnit; import org.hibernate.query.sqm.function.SqmFunctionRegistry; import org.hibernate.query.sqm.mutation.internal.temptable.AfterUseAction; diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/NullOrdering.java b/hibernate-core/src/main/java/org/hibernate/dialect/NullOrdering.java similarity index 94% rename from hibernate-core/src/main/java/org/hibernate/query/sqm/NullOrdering.java rename to hibernate-core/src/main/java/org/hibernate/dialect/NullOrdering.java index 4b5cc44a3d..aaa27abe89 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/NullOrdering.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/NullOrdering.java @@ -4,7 +4,7 @@ * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html */ -package org.hibernate.query.sqm; +package org.hibernate.dialect; /** * The order of null.