use of org.hibernate.spatial.dialect.postgis.PostgisSqmFunctionDescriptors in project hibernate-orm by hibernate.
the class CockroachDbContributor method contributeFunctions.
@Override
public void contributeFunctions(FunctionContributions functionContributions) {
HSMessageLogger.LOGGER.functionContributions(this.getClass().getCanonicalName());
final PostgisSqmFunctionDescriptors postgisFunctions = new PostgisSqmFunctionDescriptors(functionContributions);
final SqmFunctionRegistry functionRegistry = functionContributions.getFunctionRegistry();
postgisFunctions.asMap().forEach((key, desc) -> {
if (isUnsupported(key)) {
return;
}
functionRegistry.register(key.getName(), desc);
key.getAltName().ifPresent(altName -> functionRegistry.registerAlternateKey(altName, key.getName()));
});
}
Aggregations