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: [EMAIL PROTECTED] on behalf of Thorsten Kraus
Sent: Fri 7/27/2007 7:58 AM
To: [email protected]
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

_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to