| I will try the workaround! But first I need to understand better what's going on under the hood, so here's a question: hibernate-spatial contains spatial type descriptor for JTS and Geolatte. If I depend on hibernate-spatial, I can use e.g. Point<G2D> as field type and Hibernate's will correctly use the database GEOMETRY type: this just does not work with an AttributeConverter<Foo, Point<G2D>>. So, if I add the mapping for Geolatte's Point to hibernate-core, do I still need to depend on hibernate-spatial? And then, should I still use the JPA's AttributeConverter or do I need to use a Hibernate's JavaTypeDescriptor instead? |