HHH-10211 - Fix SpatialFunctionRegistry interface

This commit is contained in:
Karel Maesen 2016-11-01 17:56:21 +01:00
parent c3b1a39944
commit 52c79e1d3c
1 changed files with 2 additions and 3 deletions

View File

@ -12,17 +12,16 @@ import java.util.Iterator;
import java.util.Map; import java.util.Map;
import org.hibernate.dialect.function.SQLFunction; import org.hibernate.dialect.function.SQLFunction;
import org.hibernate.dialect.function.StandardSQLFunction;
/** /**
* Registers all available spatial functions for a <code>Dialect</code> * Registers all available spatial functions for a <code>Dialect</code>
* * <p>
* Created by Karel Maesen, Geovise BVBA on 29/10/16. * Created by Karel Maesen, Geovise BVBA on 29/10/16.
*/ */
public abstract class SpatialFunctionsRegistry implements Iterable<Map.Entry<String, SQLFunction>>, Serializable { public abstract class SpatialFunctionsRegistry implements Iterable<Map.Entry<String, SQLFunction>>, Serializable {
protected final Map<String, SQLFunction> functionMap = new HashMap<String, SQLFunction>(); protected final Map<String, SQLFunction> functionMap = new HashMap<String, SQLFunction>();
public void put(String name, StandardSQLFunction function ) { public void put(String name, SQLFunction function) {
this.functionMap.put( name, function ); this.functionMap.put( name, function );
} }