<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=580194007-27072007><FONT face=Arial color=#0000ff size=2>Hi
Andy,</FONT></SPAN></DIV>
<DIV><SPAN class=580194007-27072007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=580194007-27072007><FONT face=Arial color=#0000ff size=2>I will
try the tutorial and then I see if it works fine or not.</FONT></SPAN></DIV>
<DIV><SPAN class=580194007-27072007><FONT face=Arial color=#0000ff size=2>Just
googled a little bit and perhaps I found a more interesting project which brings
Hibernate and PostGIS together: MAJAS Hibernate Spatial (<A
href="http://www.cadrie.com/projects/majas-hibernate/">http://www.cadrie.com/projects/majas-hibernate/</A> ).</FONT></SPAN></DIV>
<DIV><SPAN class=580194007-27072007><FONT face=Arial color=#0000ff size=2>Is
anyone here who has experience with MAJAS?</FONT></SPAN></DIV><SPAN
class=580194007-27072007>
<DIV><BR><FONT face=Arial color=#0000ff size=2>Bye</FONT></DIV>
<DIV></SPAN><SPAN class=580194007-27072007><FONT face=Arial color=#0000ff
size=2>Thorsten</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B>
postgis-users-bounces@postgis.refractions.net
[mailto:postgis-users-bounces@postgis.refractions.net]<B>Im Auftrag von
</B>Andy Dale<BR><B>Gesendet:</B> Freitag, 27. Juli 2007 09:39<BR><B>An:</B>
PostGIS Users Discussion<BR><B>Betreff:</B> Re: [postgis-users] PostGIS and
Hibernate<BR><BR></FONT></DIV>Throsten,<BR><BR>I will try to answer your
questions the best I can :<BR><BR>1) UserTypes are an offical Hibernate
component thats lets you add mappings that Hibernate can use for non standard
datatype, i.e. Geometry. Seems as Norman wrote this specific UserType I
don't think it will be supported by the Hibernate Team, but the should be able
to provide general help on user types though. <BR><BR>2) Seems as JBoss uses
an embedded version of Tomcat, it should be possible. I don't really
know how to deploy stuff in Tomcat, but you should just put the user type in
your .war or where the hibernate jars are. <BR><BR>Cheers,<BR><BR>Andy<BR><BR>
<DIV><SPAN class=gmail_quote>On 27/07/07, <B class=gmail_sendername>Thorsten
Kraus</B> <<A
href="mailto:Thorsten.Kraus@ptv.de">Thorsten.Kraus@ptv.de</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN>Hi
Andy,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN>thanks for this useful
information. I read the ejb3spatial.pdf and have some further questions on
this topic :)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN>1. You mentioned that
Norman Barker has created a user type for Hibernate. Is this user type an
official component of the Hibernate framework or is it an addition where no
support from the Hibernate team is guaranteed?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN>2. The tutorial in the pdf
uses JBoss as application server. In my project I use Tomcat. So Tomcat is
not a full application server, I think it is not possible to use Hibernate
for PostGIS access in my project without changing the application server. Is
this right?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff
size=2><SPAN>Thorsten</SPAN></FONT></DIV>
<BLOCKQUOTE>
<DIV dir=ltr align=left><FONT face=Tahoma size=2>-----Ursprüngliche
Nachricht-----<BR><B>Von:</B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:postgis-users-bounces@postgis.refractions.net"
target=_blank>postgis-users-bounces@postgis.refractions.net</A> [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:postgis-users-bounces@postgis.refractions.net"
target=_blank>postgis-users-bounces@postgis.refractions.net</A>]<B>Im
Auftrag von </B>Andy Dale<BR><B>Gesendet:</B> Freitag, 27. Juli 2007
09:10<BR><B>An:</B> PostGIS Users Discussion<BR><B>Betreff:</B> Re:
[postgis-users] PostGIS and Hibernate<BR><BR></FONT></DIV>
<DIV><SPAN class=e id=q_114068f1c2dd8d28_1>Hi Thorsten,<BR><BR>A person
called Norman Barker has created a user type for Hibernate, this can be
accessed here <A onclick="return top.js.OpenExtLink(window,event,this)"
href="http://svn.refractions.net/postgis/trunk/java/ejb3/"
target=_blank>http://svn.refractions.net/postgis/trunk/java/ejb3/ </A>also
read the ejb3spatial.pdf located here as it gives a example of how to use
it.<BR><BR>Cheers,<BR><BR>Andy<BR><BR><BR><BR>
<DIV><SPAN class=gmail_quote>On 27/07/07, <B
class=gmail_sendername>Thorsten Kraus</B> < <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Thorsten.Kraus@ptv.de"
target=_blank>Thorsten.Kraus@ptv.de</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<P><FONT face=Arial size=2>Hi all,</FONT> </P>
<P><FONT face=Arial size=2>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.
</FONT></P>
<P><FONT face=Arial size=2>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.</FONT></P>
<P><FONT face=Arial size=2>Kind regards,</FONT> <BR><FONT face=Arial
size=2>Thorsten</FONT>
</P></DIV><BR>_______________________________________________<BR>postgis-users
mailing list<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:postgis-users@postgis.refractions.net"
target=_blank>postgis-users@postgis.refractions.net </A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://postgis.refractions.net/mailman/listinfo/postgis-users"
target=_blank>http://postgis.refractions.net/mailman/listinfo/postgis-users</A>
<BR><BR></BLOCKQUOTE></DIV><BR></SPAN></DIV></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>postgis-users
mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net
</A><BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="http://postgis.refractions.net/mailman/listinfo/postgis-users"
target=_blank>http://postgis.refractions.net/mailman/listinfo/postgis-users</A><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>