When I try to load points from a PostGIS database, I get the following exception:
Caused by: java.lang.ClassCastException: org.postgresql.util.PGobject
at org.hibernatespatial.postgis.PGGeometryUserType.convert2JTS(PGGeometryUserType.java:75)
at org.hibernatespatial.AbstractDBGeometryType.nullSafeGet(AbstractDBGeometryType.java:123)
at org.hibernatespatial.GeometryUserType.nullSafeGet(GeometryUserType.java:169)