<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Norman,<br>
<br>
Thanks for the reply! I have been on holidays for the past week and a
bit..... but I'm back on the job now. Thankyou very much for your code
and looking at mine. <br>
<blockquote>FYI: I have had one problem, that with PostgreSQL v8.1.3
that is not present in previous releases of PostgreSQL. Once I
re-installed the function it got past the schema creation / meta checks
on the database :)<br>
  <br>
<a class="moz-txt-link-freetext" href="http://forum.hibernate.org/viewtopic.php?t=957909&view=next&sid=f482e1fdf71eaceae1e1a5994e1c6469">http://forum.hibernate.org/viewtopic.php?t=957909&view=next&sid=f482e1fdf71eaceae1e1a5994e1c6469</a><br>
  <br>
</blockquote>
As before, I can persist and read null geometry objects only. As you
suggest "<font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">It sounds as
if your database doesn’t
have the geometry type, particularly as you can load the null type in
the table."</span></font> I agree with you! However, since I am able to
<tt>addGeometryColumn()</tt> and <tt>insert (..... GeomFromText(?????))</tt>
from the command line, I fail to see how this is the case.<br>
<br>
I do not see error's with the ejb container about the Geometry or
GeometryType classes either, so it seems to understand what these are. 
I will try and re-build the postgis.jar as the only possible thing I
can think of at present is that the Geometry "Object" is different in
database to that of the Java Object.<br>
<br>
<br>
My slow response is also due to the fact that I'm trying to fix this on
my own, however I believe I have exhausted all my current knowledge. If
you have any other light to shed, I'd very much appreciate it!<br>
<br>
<br>
-- Thanks a heap!!!!<br>
<br>
<br>
<br>
<small><tt>13:14:56,152 INFO  [STDOUT] Hibernate: select nextval
('hibernate_sequence')<br>
13:14:56,152 INFO  [STDOUT] Hibernate: insert into Location (name,
geom, id) values (?, ?, ?)<br>
13:14:56,183 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null<br>
13:14:56,183 ERROR [JDBCExceptionReporter] Batch entry 0 insert into
Location (name, geom, id) values ( was aborted. Call getNextException()
to see the cause.<br>
13:14:56,183 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: XX000<br>
13:14:56,183 ERROR [JDBCExceptionReporter] ERROR: parse error - invalid
geometry<br>
<br>
13:14:56,183 ERROR [AbstractFlushingEventListener] Could not
synchronize database state with session
org.hibernate.exception.GenericJDBCException: Could not execute JDBC
batch update<br>
        at
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)<br>
        at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)<br>
        at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)<br>
        at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)<br>
        at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)<br>
        at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)<br>
        at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)<br>
        at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)<br>
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)<br>
        at
org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:296)<br>
        at
org.jboss.ejb3.entity.TransactionScopedEntityManager.flush(TransactionScopedEntityManager.java:204)<br>
        at
com.lisasoft.routedirections.ard.beans.RouteDirectionsARDBean.setLocation(RouteDirectionsARDBean.java:69)<br>
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
        at java.lang.reflect.Method.invoke(Method.java:585)</tt></small><br>
<br>
<br>
<br>
Norman Barker wrote:
<blockquote
 cite="midB67A5FB7A8114B47A70517C9C0D102E8131D16@bath.uk.rsinc.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City">
  <o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  </o:SmartTagType></o:SmartTagType></o:SmartTagType>
  <div class="Section1">
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Hi Andrew,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">I have taken
your code, created a new
database called Test based on the postgis template, and changed the
datasource
in test-ds, persistence.xml in src/META-INF now references this.  I
have
also created a simple remote client.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Copy
postgis.jar and postgresqlXx.jar to
the lib directory of this distribution, and set up
JBoss/server/default/lib
with postgis.jar and postgresqlXxx.jar as well.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Running ant
deploy, will deploy the app to
JBoss, running ant runClient will run the test client in src/Client.java<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">I slightly
changed your query logic for
getSingleResult, because the logic in your schema means you can have
multiple
locations per name.  It works nicely for me!!<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">When you
created your database did you
base it on the postgis template, if not load <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">C:\program
files\postgresql-8.1\share\contrib
spatial-ref-sys.sql and lwpostgis.sql<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">It sounds as
if your database doesn’t
have the geometry type, particularly as you can load the null type in
the table.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Let me know
if you have any other
problems.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><st1:City w:st="on"><st1:place w:st="on"><font
 color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Norman</span></font></st1:place></st1:City><font
 color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users-bounces@postgis.refractions.net">postgis-users-bounces@postgis.refractions.net</a>
[<a class="moz-txt-link-freetext" href="mailto:postgis-users-bounces@postgis.refractions.net">mailto:postgis-users-bounces@postgis.refractions.net</a>] <b><span
 style="font-weight: bold;">On Behalf Of </span></b>Andrew Hughes<br>
  <b><span style="font-weight: bold;">Sent:</span></b> 20 December 2006
23:47<br>
  <b><span style="font-weight: bold;">To:</span></b> <st1:PersonName
 w:st="on">PostGIS Users Discussion</st1:PersonName><br>
  <b><span style="font-weight: bold;">Subject:</span></b> Re:
[postgis-users]
SpatialEJB3: (PostGIS and Hibernate)</span></font><font color="black"><span
 style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">Hi Norman,<br>
  <br>
thanks for the reply again! I've tried adding everything like you have
suggested... the </span></font><tt><font face="Courier New" size="2"><span
 style="font-size: 10pt;">org.postgis.GeomteryType</span></font></tt>
needed
appears to be needed in the beans.jar inside the ear... However I have
also
packed this in its own jar (hibernate-geomtype.jar) which I have placed
in both
the <tt><font face="Courier New" size="2"><span
 style="font-size: 10pt;">$JBOSS$/client</span></font></tt>
and <tt><font face="Courier New" size="2"><span
 style="font-size: 10pt;">$JBOSS$/server/default/lib</span></font></tt>
directories. FYI: the database schema is most definately not the
problem.<br>
  <br>
I have tried everything I know to get this working, without success...
I can
persist null geometry objects, and using native queries I seem to
persist the
Geometry as garbage in the database... strange (Even tho I am sending
geomAsText(....) in my native insert statement).. <br>
  <br>
It seems pretty obvious that my persistance container does not
understand what
a Geomtery or GeometryType are.Below is a copy of the stacktrace I get
when I
try and persist() a record containing a valid POINT.  <br>
  <br>
Attatched are my beans (which might make more scence that me!). <br>
  <br>
  <br>
Thanks in advance, and for the help you've already offered.<br>
  <br>
  <br>
Stacktrace from a manager.persist():<o:p></o:p></p>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt;">
  <hr align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><br>
  <br>
  </span></font><tt><font face="Courier New" size="2"><span
 style="font-size: 10pt;">09:52:24,200
INFO  [STDOUT] Hibernate: insert into Location (name, geom, id) values
(?,
?, ?)</span></font></tt><font face="Courier New" size="2"><span
 style="font-size: 10pt; font-family: "Courier New";"><br>
  <tt><font face="Courier New">09:52:24,270 WARN 
[JDBCExceptionReporter]
SQL Error: 0, SQLState: null</font></tt><br>
  <tt><font face="Courier New">09:52:24,270 ERROR
[JDBCExceptionReporter] Batch
entry 0 insert into Location (name, geom, id) values ( was aborted.
Call
getNextException() to see th</font></tt><br>
  <tt><font face="Courier New">e cause.</font></tt><br>
  <tt><font face="Courier New">09:52:24,270 WARN 
[JDBCExceptionReporter]
SQL Error: 0, SQLState: XX000</font></tt><br>
  <tt><font face="Courier New">09:52:24,270 ERROR
[JDBCExceptionReporter] ERROR:
parse error - invalid geometry</font></tt><br>
  <br>
  <tt><font face="Courier New">09:52:24,270 ERROR
[AbstractFlushingEventListener]
Could not synchronize database state with session</font></tt><br>
  <tt><font face="Courier New">org.hibernate.exception.GenericJDBCException:
Could not execute JDBC batch update</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:296)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.entity.TransactionScopedEntityManager.flush(TransactionScopedEntityManager.java:204)</font></tt><br>
  <tt><font face="Courier New">        at
com.lisasoft.routedirections.ard.beans.RouteDirectionsARDBean.setLocation(RouteDirectionsARDBean.java:65)</font></tt><br>
  <tt><font face="Courier New">        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</font></tt><br>
  <tt><font face="Courier New">        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</font></tt><br>
  <tt><font face="Courier New">        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</font></tt><br>
  <tt><font face="Courier New">        at
java.lang.reflect.Method.invoke(Method.java:585)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:58)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)</font></tt><br>
  <tt><font face="Courier New">        at
$Proxy89.setLocation(Unknown Source)</font></tt><br>
  <tt><font face="Courier New">        at
com.lisasoft.routedirections.ard.delegates.LocationDelegate.setLocation(LocationDelegate.java:23)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.jsp.index_jsp._jspService(index_jsp.java:92)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)</font></tt><br>
  <tt><font face="Courier New">        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)</font></tt><br>
  <tt><font face="Courier New">        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:637)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)</font></tt><br>
  <tt><font face="Courier New">        at
java.lang.Thread.run(Thread.java:595)</font></tt><br>
  <tt><font face="Courier New">Caused by: Batch entry 0 insert into
Location
(name, geom, id) values ( was aborted. Call getNextException() to see
the
cause.</font></tt><br>
  <tt><font face="Courier New">        at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:107)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:519)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)</font></tt><br>
  <tt><font face="Courier New">        ... 68
more</font></tt><br>
  <tt><font face="Courier New">09:52:24,300 ERROR
[RouteDirectionsARDBean]
Problem with Hibernate SQL:</font></tt><br>
  <tt><font face="Courier New">javax.persistence.PersistenceException:
org.hibernate.exception.GenericJDBCException: Could not execute JDBC
batch
update</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:641)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:299)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.entity.TransactionScopedEntityManager.flush(TransactionScopedEntityManager.java:204)</font></tt><br>
  <tt><font face="Courier New">        at
com.lisasoft.routedirections.ard.beans.RouteDirectionsARDBean.setLocation(RouteDirectionsARDBean.java:65)</font></tt><br>
  <tt><font face="Courier New">        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</font></tt><br>
  <tt><font face="Courier New">        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</font></tt><br>
  <tt><font face="Courier New">        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</font></tt><br>
  <tt><font face="Courier New">        at
java.lang.reflect.Method.invoke(Method.java:585)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:58)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)</font></tt><br>
  <tt><font face="Courier New">        at
$Proxy89.setLocation(Unknown Source)</font></tt><br>
  <tt><font face="Courier New">        at
com.lisasoft.routedirections.ard.delegates.LocationDelegate.setLocation(LocationDelegate.java:23)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.jsp.index_jsp._jspService(index_jsp.java:92)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)</font></tt><br>
  <tt><font face="Courier New">        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)</font></tt><br>
  <tt><font face="Courier New">        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:637)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)</font></tt><br>
  <tt><font face="Courier New">        at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)</font></tt><br>
  <tt><font face="Courier New">        at
java.lang.Thread.run(Thread.java:595)</font></tt><br>
  <tt><font face="Courier New">Caused by:
org.hibernate.exception.GenericJDBCException: Could not execute JDBC
batch
update</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:296)</font></tt><br>
  <tt><font face="Courier New">        ... 62
more</font></tt><br>
  <tt><font face="Courier New">Caused by: Batch entry 0 insert into
Location
(name, geom, id) values ( was aborted. Call getNextException() to see
the
cause.</font></tt><br>
  <tt><font face="Courier New">        at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:107)</font></tt><br>
  <tt><font face="Courier New">        at
org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:519)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)</font></tt><br>
  <tt><font face="Courier New">        at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)</font></tt><br>
  <tt><font face="Courier New">        ... 68
more</font></tt></span></font><br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <br>
Norman Barker wrote: <o:p></o:p></p>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Hi Andrew,<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">What you are saying is correct, but I will expand on it just to be clear<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">for you and others.<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">You have to add the GeometryType to your project, and postgis.jar, and<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">postgresqlXx.jar to the JBoss path (JBOSS_HOME\server\default\lib for<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">example).<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">It is then sufficient to mark a geometry getter of a POJO (with the<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">@Entity annotation at the class level) as     <o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">@Type(type = "org.postgis.hibernate.GeometryType")<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">@Column(name="bbox", columnDefinition="Geometry")   (name can be<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">whatever you want, or you can leave it to hibernate to choose it for you<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">:-) )<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Then in your stateless session bean you can inject the entityManager <o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">        @PersistenceContext(unitName="MyConfiguration")<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">        private EntityManager entityManager;<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">and persist your entity pojos as per normal.<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">If you configure your persistence.xml as follows then the PostGIS tables<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">of your spatial database are created for you (can be a good or a bad<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">thing depending on your view point, you have to add the spatial index by<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">hand).<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><persistence><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">        <persistence-unit name="MyConfiguration"><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">               <jta-data-source>java:/MY_DS</jta-data-source><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">               <properties><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">                       <property name="hibernate.dialect"<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">value="org.hibernate.dialect.PostgreSQLDialect"/><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">                       <property name="hibernate.hbm2ddl.auto"<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">value="update"/><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">                       <!-- property name="hibernate.show_sql"<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">value="true"/>  --><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">               </properties><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">        </persistence-unit><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"></persistence><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Hope this gets you started, please post your findings back to the list.<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Thanks,<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><st1:City w:st="on"><st1:place w:st="on"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;">Norman</span></font></st1:place></st1:City><o:p></o:p></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">-----Original Message-----<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">From: <a
 href="mailto:postgis-users-bounces@postgis.refractions.net">postgis-users-bounces@postgis.refractions.net</a><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">[<a
 href="mailto:postgis-users-bounces@postgis.refractions.net">mailto:postgis-users-bounces@postgis.refractions.net</a>] On Behalf Of<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Andrew Hughes<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Sent: 19 December 2006 02:05<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">To: <st1:PersonName w:st="on">PostGIS Users Discussion</st1:PersonName><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Subject: Re: [postgis-users] SpatialEJB3: (PostGIS and Hibernate)<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Hi Norman,<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Thanks very much for the reply. Originally I noticed that this was an <o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">eclipse project, so I tried to get it to compile in Eclipse.... however <o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">this failed (and I made the wrong assumption that I needed the JBoss IDE<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">plugins installed).<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Anyway, I have tried this with Ant directly and I now have this <o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">compiling.. and building the injest.jar.<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">I don't want to use the message driven beans as in the tutorial... or <o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">SOAP,  I am using stateless session beans, currently with PostgreSQL... <o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">but I obviously want to add the Geometry Type to the hibernate actions.<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">I am correct in assuming that I simply need to add the GeometryType.java<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">class to my project to enable this? I would then use annotations to <o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">specify the GeometryType such as:<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">@Type(type = "org.postgis.hibernate.GeometryType")<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Is there anything that I am missing?<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Thanks in advance<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">--AH<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Norman Barker wrote:<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Hi Andrew,<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Hopefully this gets to you before you start downloading the JBoss IDE!<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">The project uses Ant, and the Java 1.5 JDK.<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">(<a href="http://ant.apache.org">http://ant.apache.org</a>)<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">(<a
 href="http://svn.refractions.net/postgis/trunk/java/ejb3/build.xml">http://svn.refractions.net/postgis/trunk/java/ejb3/build.xml</a>)<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">If you edit the paths in build.xml to point to your installation,<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">running 'ant deploy' will build and deploy everything to JBoss for<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">you.<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">I used to use the JBoss IDE in the XDoclet for EJB2.x days, but with<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">annotations I have dumped it for plain eclipse - but perhaps I should<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">give it a go.<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><st1:City w:st="on"><st1:place w:st="on"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;">Norman</span></font></st1:place></st1:City><o:p></o:p></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">-----Original Message-----<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">From: <a
 href="mailto:postgis-users-bounces@postgis.refractions.net">postgis-users-bounces@postgis.refractions.net</a><o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">[<a
 href="mailto:postgis-users-bounces@postgis.refractions.net">mailto:postgis-users-bounces@postgis.refractions.net</a>] On Behalf Of<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Andrew Hughes<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Sent: 18 December 2006 05:48<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">To: <st1:PersonName w:st="on">PostGIS Users Discussion</st1:PersonName><o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Subject: Re: [postgis-users] SpatialEJB3: (PostGIS and Hibernate)<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Thanks for the reply....<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">I have checked out the EJB3Spatial source from SVN: <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a
 href="http://svn.refractions.net/postgis/trunk/java/ejb3/">http://svn.refractions.net/postgis/trunk/java/ejb3/</a><o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Now, I am presuming that this requires the JBoss IDE? since it doesn't<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">build with Eclipse.... and I can't see this anywhere in the tutorial.<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">The JBoss plugins are in total 119Mb.... which is rather painful and <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">slow... it would be rather helpful if the binaries where available for<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">direct download.<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">When I finally get this downloaded I'll hopefully make some good<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">progress :)<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Norman Barker wrote:<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Hi,<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Glad you like the idea! PostGIS does all the work though J, and there<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">have been some good bug reports and questions from users as well.<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">In conclusion;<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">There have been quite a few users of the EJB3 Geometry annotations, <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">but they are split between JBoss users, and pure Hibernate/Spring <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">users - it works well in either environment. Since it is possible to <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">mark a property of an entity as @Geometry and then have it persist<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">and<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">retrieve from PostGIS then the investigation was a success, and I am <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">using it in more projects (and once my current deadlines are out of <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">the way, I want to do some more to the codebase).<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">The incorporation of spatial functions into hql and ejb-ql is I <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">believe the next step, but quite a major undertaking. Certainly at<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">the<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">moment you could achieve the same functionality with <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">entitymanager.createNativeQuery for example (which I use to run<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">vacuum<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">analyze).<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Let me know if you have any questions, and do post more details about<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">your project, there have been some interesting use cases.<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Thanks,<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><st1:City w:st="on"><st1:place w:st="on"><font color="black"
 face="Courier New" size="2"><span style="font-size: 10pt;">Norman</span></font></st1:place></st1:City><o:p></o:p></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">------------------------------------------------------------------------<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">*From:* <a
 href="mailto:postgis-users-bounces@postgis.refractions.net">postgis-users-bounces@postgis.refractions.net</a> <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">[<a
 href="mailto:postgis-users-bounces@postgis.refractions.net">mailto:postgis-users-bounces@postgis.refractions.net</a>] *On Behalf Of <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">*Andrew Hughes<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">*Sent:* 12 December 2006 04:39<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">*To:* <st1:PersonName w:st="on">PostGIS Users Discussion</st1:PersonName><o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">*Subject:* [postgis-users] SpatialEJB3: (PostGIS and Hibernate)<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Hello All,<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">I would like to use the SpatialEJB3 JBoss container for my JBoss Web <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Service.<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">The SpatialEJB3 [ <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a
 href="http://postgis.refractions.net/support/wiki/index.php?SpatialEJB3">http://postgis.refractions.net/support/wiki/index.php?SpatialEJB3</a> ] <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">seems to be exactly what I want, but I do have some concerns before I<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">invest some time in this.....<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    * Was there a conclusion to the SpatialEJB3 Investigation:<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      "/Spatial EJB3 is a quick investigation to see if it is<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">possible<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      to integrate the Java 5 annotation approach to mark a property<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      of an object as spatial and to delegate to the EJB3 persistence<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      model to store and retrieve this data./"?<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    * I require the PostGIS functions [such as<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      /intersects(geometry,geometry)/] to extract the data I am<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      looking for in my spatial database. I am unable to find a<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      reference to any java code that shows someone running anything<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      [like /select intersection(my_geom,geometry) from<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      locations_table where intersects(my_geom,geomtery);/ ] ?<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">For the people who are involved in the Spatial EJB3, I really like<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">the<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">idea... well-done!!!<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">--AH<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">------------------------------------------------------------------------<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">_______________________________________________<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">postgis-users mailing list<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a
 href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a
 href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">      <o:p></o:p></span></font></pre>
    </blockquote>
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">    <o:p></o:p></span></font></pre>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">  <o:p></o:p></span></font></pre>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
postgis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>
<a class="moz-txt-link-freetext" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a></pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<br>
Regards,<br>
<br>
<b>Andrew Hughes</b><br>
Software Engineer<br>
LISAsoft Pty. Ltd. (Adelaide)<br>
<br>
<hr color="#003466">
<table align="center">
</table>
<table align="center" border="0">
  <tbody>
    <tr>
      <td colspan="5" align="center"><a href="http://www.lisasoft.com">
      <h3>LISAsoft Pty. Ltd.</h3>
      </a></td>
    </tr>
    <tr align="center" valign="top">
      <td><b>ADELAIDE Office</b><br>
      <a
 href="http://terrapages.net/mapbutton/RetrieveButtonServlet?buttonID=4"
 taget="_blank"><img src="cid:part1.09020807.08070602@lisasoft.com"
 border="0"></a><br>
38 Greenhill Road<br>
Wayville SA 5034<br>
Australia<br>
      <b>Telephone +61 8 8272 1555</b><br>
      <b>Facsimile +61 8 8271 1199</b> </td>
      <td width="20"> <br>
      </td>
      <td><b>SYDNEY Office</b><br>
      <a
 href="http://terrapages.net/mapbutton/RetrieveButtonServlet?buttonID=1"
 taget="_blank"><img src="cid:part1.09020807.08070602@lisasoft.com"
 border="0"></a><br>
Suite 112 The Lower Deck<br>
Jones Bay Wharf<br>
19-21 Pirrama Road<br>
Pyrmont NSW 2009 AUS<br>
      <b>Telephone +61 2 8570 5060</b><br>
      <b>Facsimile +61 2 8570 5099</b> </td>
      <td width="20"> <br>
      </td>
      <td><b>MELBOURNE Office</b><br>
      <a
 href="http://terrapages.net/mapbutton/RetrieveButtonServlet?buttonID=3"
 taget="_blank"><img src="cid:part1.09020807.08070602@lisasoft.com"
 border="0"></a><br>
Level 7 520 Collins Street<br>
Melbourne VIC 3000<br>
Australia<br>
      <b>Telephone +61 3 9629 1799</b><br>
      <b>Facsimile +61 3 9629 4955</b> </td>
    </tr>
  </tbody>
</table>
<hr color="#003466">
</div>
</body>
</html>