[postgis-users] Retrieving and storing Geography column data through JDBC (Java/Hibernate)

Kristof Adriaenssens kristof.adriaenssens at gmail.com
Fri May 21 07:00:56 PDT 2010

Hi all,

We used the GeometryType Hibernate UserType that gets delivered with Postgis
1.5 (java/ejb3) to store and retrieve Geometry column data.
This works fine but unfortunately it does not seem to support the new
Geography data type.

We tried storing Point and LineString Geometry objects (SRID set to 4326)
but we get an exception that a bytea can't be converted to Geography.
We use the org.postgis.DriverWrapper Driver class name which is supposed to
automatically load support for the spatial types.

Is there a known work-around that would work for us, preferably through
JDBC?  If not now then are there plans to support this?

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100521/7f0e070c/attachment.html>

More information about the postgis-users mailing list