[postgis-users] PostGIS and Hibernate

Norman Barker nbarker at ittvis.com
Fri Jul 27 00:37:15 PDT 2007


Thorsten,

as Andy mentioned, there is a hibernate usertype for postgis, dialect, and criteria api in postgis SVN.  In addition it is simple to use hibernate tools to reverse engineer your DB into pojos with the geometry annotation automatically setup for you.

There are couple of other projects now that are doing the same thing, I would prefer for this code to stay in the postgis tree, but as it is replicated (I think by independent development as the code isn't hard) in at least 2 other projects this might change.

Norman


-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net on behalf of Thorsten Kraus
Sent: Fri 7/27/2007 7:58 AM
To: postgis-users at postgis.refractions.net
Subject: [postgis-users] PostGIS and Hibernate
 
Hi all,

currently I am working for a project which uses PostGIS to store spatial objects in the backend of an web application (Tomcat is used as servlet container). Some time ago I searched the web for Hibernate support for PostGIS database and its geographical objects, but found nothing suitable. So I use Hibernate for non geographical attribute data and wrote some JDBC code for accessing the geographical objects in PostGIS. This hybrid structure of Hibernate and JDBC works fine, but it would even be nicer and more flexible if there was a possibility to handle all the database stuff with Hibernate.
Can you tell me if there is Hibernate support for PostGIS meanwhile? If yes, a piece of code or a link to a tutorial would be pleasant.

Kind regards,
Thorsten

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20070727/12e36411/attachment.html>


More information about the postgis-users mailing list