diff --git a/documentation/src/main/asciidoc/userguide/chapters/query/spatial/Spatial.adoc b/documentation/src/main/asciidoc/userguide/chapters/query/spatial/Spatial.adoc index 48cd04d47e..05aaf0627a 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/query/spatial/Spatial.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/query/spatial/Spatial.adoc @@ -150,7 +150,7 @@ The `GEOGRAPHY` type is not currently supported. CockroachDB:: -The dialect `CockroachDB` support the `GEOMETRY` type in CockroachDB v20.2 and later. The `GEOGRAPHY` type is currently not supported. +The dialect `CockroachDialect` supports the `GEOMETRY` type in CockroachDB v20.2 and later. The `GEOGRAPHY` type is currently not supported. H2GIS:: The `H2Dialect` supports H2GIS, a spatial extension of the H2 in-memory database. This dialect can be used as a replacement for the `GeoDB` dialect that was supported in previous versions. The major difference with `GeoDB` is that the `GEOGRAPHY` column type is currently not present in `H2GIS`. diff --git a/hibernate-spatial/src/main/java/org/hibernate/spatial/GeolatteGeometryJavaTypeDescriptor.java b/hibernate-spatial/src/main/java/org/hibernate/spatial/GeolatteGeometryJavaTypeDescriptor.java index 139f3260fd..4026bbde20 100644 --- a/hibernate-spatial/src/main/java/org/hibernate/spatial/GeolatteGeometryJavaTypeDescriptor.java +++ b/hibernate-spatial/src/main/java/org/hibernate/spatial/GeolatteGeometryJavaTypeDescriptor.java @@ -63,7 +63,7 @@ public class GeolatteGeometryJavaTypeDescriptor extends AbstractJavaTypeDescript public GeolatteGeometryJavaTypeDescriptor(Class type, Wkt.Dialect wktDialect) { super( type ); - this.wktDialect = Wkt.Dialect.SFA_1_1_0; + this.wktDialect = wktDialect; } @Override diff --git a/hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/h2gis/H2GisDialectContributor.java b/hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/h2gis/H2GisDialectContributor.java index ab3beb40dd..b8d5d1b24d 100644 --- a/hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/h2gis/H2GisDialectContributor.java +++ b/hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/h2gis/H2GisDialectContributor.java @@ -17,10 +17,10 @@ import org.hibernate.spatial.contributor.ContributorImplementor; public class H2GisDialectContributor implements ContributorImplementor { - private final ServiceRegistry serviceRegistryegistry; + private final ServiceRegistry serviceRegistry; public H2GisDialectContributor(ServiceRegistry serviceRegistry) { - this.serviceRegistryegistry = serviceRegistry; + this.serviceRegistry = serviceRegistry; } public void contributeJdbcTypes(TypeContributions typeContributions) { @@ -42,6 +42,6 @@ public class H2GisDialectContributor implements ContributorImplementor { @Override public ServiceRegistry getServiceRegistry() { - return this.serviceRegistryegistry; + return this.serviceRegistry; } }