Example usage for org.hibernate.spatial.dialect.mysql MySQLGeometryTypeDescriptor INSTANCE

List of usage examples for org.hibernate.spatial.dialect.mysql MySQLGeometryTypeDescriptor INSTANCE

Introduction

In this page you can find the example usage for org.hibernate.spatial.dialect.mysql MySQLGeometryTypeDescriptor INSTANCE.

Prototype

MySQLGeometryTypeDescriptor INSTANCE

To view the source code for org.hibernate.spatial.dialect.mysql MySQLGeometryTypeDescriptor INSTANCE.

Click Source Link

Document

An instance of this Descriptor

Usage

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