List of usage examples for org.hibernate.spatial.dialect.mysql MySQLGeometryTypeDescriptor INSTANCE
MySQLGeometryTypeDescriptor INSTANCE
To view the source code for org.hibernate.spatial.dialect.mysql MySQLGeometryTypeDescriptor INSTANCE.
Click Source Link
From source file:org.niord.core.db.MySQLSpatialDialect.java
License:Apache License
/** * Constructs an instance//from w ww.j a v a 2 s . c o m */ public MySQLSpatialDialect() { super(); registerColumnType(MySQLGeometryTypeDescriptor.INSTANCE.getSqlType(), "GEOMETRY"); final MySQLSpatialFunctions functionsToRegister = overrideObjectShapeFunctions(new MySQLSpatialFunctions()); for (Map.Entry<String, StandardSQLFunction> entry : functionsToRegister) { registerFunction(entry.getKey(), entry.getValue()); } }
From source file:org.niord.core.db.MySQLSpatialDialect.java
License:Apache License
@Override public void contributeTypes(TypeContributions typeContributions, ServiceRegistry serviceRegistry) { super.contributeTypes(typeContributions, serviceRegistry); typeContributions.contributeType(new GeolatteGeometryType(MySQLGeometryTypeDescriptor.INSTANCE)); typeContributions.contributeType(new JTSGeometryType(MySQLGeometryTypeDescriptor.INSTANCE)); }