<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [postgis-users] PostGIS and Hibernate</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Thorsten,<BR>
<BR>
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.<BR>
<BR>
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.<BR>
<BR>
Norman<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: postgis-users-bounces@postgis.refractions.net on behalf of Thorsten Kraus<BR>
Sent: Fri 7/27/2007 7:58 AM<BR>
To: postgis-users@postgis.refractions.net<BR>
Subject: [postgis-users] PostGIS and Hibernate<BR>
<BR>
Hi all,<BR>
<BR>
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.<BR>
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.<BR>
<BR>
Kind regards,<BR>
Thorsten<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>