Given a domain type Foo and an AttributeConverter<Foo, Point<G2D>>, Hibernate fails to infer the database type for the field from the converter.
Any luck trying the patch workaround?
Thank you for the thorough explanation Steve! All is much cleared now. I'm trying to patch as you suggested, but I admit I'm not that into Hibernate's internals; for example, JdbcTypeJavaClassMappings maps Class to Integer and vice versa, but in Types there is no value for GEOMETRY: how do I know which value to use?
but in Types there is no value for GEOMETRY
You mean in java.sql.Types? Why would that matter? They are just ints. You need to find the properly type code for your database for its geometry type.
The preliminary work (BootstrapContext and TypeConfiguration) are in place now on 5.3 to address this...
If hibernate-spatial is on classpath and one of its Dialects are used, then this will JustWork. However, if hibernate-spatial is not on classpath or one of its Dialects is not used, then you will have to register the proper JavaTypeDescriptor yourself.