From 9aba4532cd46a40ffe54d7e510761980432b2899 Mon Sep 17 00:00:00 2001 From: Karel Maesen Date: Mon, 26 Jul 2021 14:43:31 +0200 Subject: [PATCH] HHH-147 Fix method name in contract --- .../java/org/hibernate/boot/model/FunctionContributor.java | 3 +-- .../src/main/java/org/hibernate/query/spi/QueryEngine.java | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java b/hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java index b79ee08486..c1cf3cbe7f 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java @@ -14,7 +14,6 @@ package org.hibernate.boot.model; -import org.hibernate.query.sqm.function.SqmFunctionRegistry; import org.hibernate.service.ServiceRegistry; /** @@ -30,5 +29,5 @@ public interface FunctionContributor { * @param functionContributions The callback for contributing functions * @param serviceRegistry The service registry */ - void contributeTypes(FunctionContributions functionContributions, ServiceRegistry serviceRegistry); + void contributeFunctions(FunctionContributions functionContributions, ServiceRegistry serviceRegistry); } diff --git a/hibernate-core/src/main/java/org/hibernate/query/spi/QueryEngine.java b/hibernate-core/src/main/java/org/hibernate/query/spi/QueryEngine.java index ac9a4a6d95..d11701a87e 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/spi/QueryEngine.java +++ b/hibernate-core/src/main/java/org/hibernate/query/spi/QueryEngine.java @@ -7,7 +7,6 @@ package org.hibernate.query.spi; import org.hibernate.Incubating; -import org.hibernate.boot.model.FunctionContributions; import org.hibernate.boot.model.FunctionContributor; import org.hibernate.boot.registry.classloading.spi.ClassLoaderService; import org.hibernate.boot.spi.BootstrapContext; @@ -28,7 +27,6 @@ import org.hibernate.query.internal.QueryInterpretationCacheDisabledImpl; import org.hibernate.query.internal.QueryInterpretationCacheStandardImpl; import org.hibernate.query.named.NamedObjectRepository; import org.hibernate.query.sqm.NodeBuilder; -import org.hibernate.query.sqm.function.SqmFunctionDescriptor; import org.hibernate.query.sqm.function.SqmFunctionRegistry; import org.hibernate.query.sqm.internal.SqmCreationOptionsStandard; import org.hibernate.query.sqm.internal.SqmCriteriaNodeBuilder; @@ -133,7 +131,7 @@ public class QueryEngine { for ( FunctionContributor contributor : serviceRegistry.getService( ClassLoaderService.class ) .loadJavaServices( FunctionContributor.class ) ) { - contributor.contributeTypes( sqmFunctionRegistry::register, serviceRegistry ); + contributor.contributeFunctions( sqmFunctionRegistry::register, serviceRegistry ); } final boolean showSQLFunctions = ConfigurationHelper.getBoolean(