Remove need for Spatial Dialects #4111
Replies: 1 comment
-
Work has been started on this. PR will follow soon so Hibernate-spatial can be re-enabled from that point on. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The biggest problem with the current Hibernate Spatial design is the need for
SpatialDialect
s. In Hibernate 6 we should no longer need them.Currently
SpatialDialect
s exist mainly to:GeolatteGeometryType
andJTSGeometryType
;registerColumnType()
method)For 1), we can move the type contributions out of the
SpatialDialect
and in a separateTypeContributor
implementation that is provided by the Spatial module.For 2) we can add a
FunctionContributor
contract (see proposa #4108) and use that to register the spatial functions into theQueryEngine
's function registry.For 3), we can move the column type registration to the (parent)
Dialect
since it introduces no dependencies. This depends on proposal #4088 (Introduce notion of SQL type code).Beta Was this translation helpful? Give feedback.
All reactions