For anyone interested, I developed a very basic plugin to integrate
Grails 1.3.7 with hibernate-spatial:
https://github.com/daniel-lima/grails-hibernate-spatial-plugin. So far
the plugin only handles dependency resolution and the configuration of
Hibernate's custom user types and Hibernate's dialect.
There is a different plugin for each provider supported by
hibernate-spatial (http://www.hibernatespatial.org/). So, if you want to
use hibernate-spatial for PostGIS, you must install
hibernate-spatial-postgresql (and PostGIS !!! :-)).
Of course it's virtually impossible to have all RDMBS installed,
with spatial extension enabled and properly configured, just to test the
child plugins. Any help in this regard would be appreciated.
5. Changed BootStrap.groovy for inserting and searching Xs.
I saw that problems about datatypes are very common in
hibernate-spatial, so it's a good idea to check first on Google if you
start seeing messages about invalid types or invalid geometries :-|
It's also a good idea to keep Hibernate's debug enabled until you
few comfortable about the spatial extent/extension: