HHH-147 Fix method name in contract

This commit is contained in:
Karel Maesen 2021-07-26 14:43:31 +02:00 committed by Christian Beikov
parent 21dd7a35f1
commit 9aba4532cd
2 changed files with 2 additions and 5 deletions

View File

@ -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);
}

View File

@ -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(