<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<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]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Andrew,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;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 size=2
  color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
  color:navy'>Norman</span></font></st1:place></st1:City><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> postgis-users-bounces@postgis.refractions.net
[mailto:postgis-users-bounces@postgis.refractions.net] <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 size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>Hi Norman,<br>
<br>
thanks for the reply again! I've tried adding everything like you have
suggested... the </span></font><tt><font size=2 face="Courier New"><span
style='font-size:10.0pt'>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 size=2 face="Courier New"><span style='font-size:10.0pt'>$JBOSS$/client</span></font></tt>
and <tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>$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 align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br>
</span></font><tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>09:52:24,200
INFO  [STDOUT] Hibernate: insert into Location (name, geom, id) values (?,
?, ?)</span></font></tt><font size=2 face="Courier New"><span style='font-size:
10.0pt;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 size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>Hi Andrew,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>for you and others.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>You have to add the GeometryType to your project, and postgis.jar, and<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>postgresqlXx.jar to the JBoss path (JBOSS_HOME\server\default\lib for<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>example).<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>It is then sufficient to mark a geometry getter of a POJO (with the<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>@Entity annotation at the class level) as     <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>@Type(type = "org.postgis.hibernate.GeometryType")<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>@Column(name="bbox", columnDefinition="Geometry")   (name can be<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>whatever you want, or you can leave it to hibernate to choose it for you<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>:-) )<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Then in your stateless session bean you can inject the entityManager <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>        @PersistenceContext(unitName="MyConfiguration")<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>        private EntityManager entityManager;<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>and persist your entity pojos as per normal.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>If you configure your persistence.xml as follows then the PostGIS tables<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>of your spatial database are created for you (can be a good or a bad<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>thing depending on your view point, you have to add the spatial index by<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>hand).<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><persistence><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>        <persistence-unit name="MyConfiguration"><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>               <jta-data-source>java:/MY_DS</jta-data-source><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>               <properties><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>                       <property name="hibernate.dialect"<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>value="org.hibernate.dialect.PostgreSQLDialect"/><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>                       <property name="hibernate.hbm2ddl.auto"<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>value="update"/><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>                       <!-- property name="hibernate.show_sql"<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>value="true"/>  --><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>               </properties><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>        </persistence-unit><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'></persistence><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Hope this gets you started, please post your findings back to the list.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Thanks,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><st1:City
w:st="on"><st1:place w:st="on"><font size=2 color=black face="Courier New"><span
  style='font-size:10.0pt'>Norman</span></font></st1:place></st1:City><o:p></o:p></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>-----Original Message-----<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>[<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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Andrew Hughes<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Sent: 19 December 2006 02:05<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>To: <st1:PersonName
w:st="on">PostGIS Users Discussion</st1:PersonName><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Subject: Re: [postgis-users] SpatialEJB3: (PostGIS and Hibernate)<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Hi Norman,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Thanks very much for the reply. Originally I noticed that this was an <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>eclipse project, so I tried to get it to compile in Eclipse.... however <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>this failed (and I made the wrong assumption that I needed the JBoss IDE<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>plugins installed).<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Anyway, I have tried this with Ant directly and I now have this <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>compiling.. and building the injest.jar.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>I don't want to use the message driven beans as in the tutorial... or <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>SOAP,  I am using stateless session beans, currently with PostgreSQL... <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>but I obviously want to add the Geometry Type to the hibernate actions.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>I am correct in assuming that I simply need to add the GeometryType.java<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>class to my project to enable this? I would then use annotations to <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>specify the GeometryType such as:<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>@Type(type = "org.postgis.hibernate.GeometryType")<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Is there anything that I am missing?<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Thanks in advance<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>--AH<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Norman Barker wrote:<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Hi Andrew,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Hopefully this gets to you before you start downloading the JBoss IDE!<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>The project uses Ant, and the Java 1.5 JDK.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>(<a
href="http://ant.apache.org">http://ant.apache.org</a>)<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>(<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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>If you edit the paths in build.xml to point to your installation,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>running 'ant deploy' will build and deploy everything to JBoss for<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre></blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>you.<o:p></o:p></span></font></pre><pre><font size=2
color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>annotations I have dumped it for plain eclipse - but perhaps I should<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>give it a go.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><st1:City
w:st="on"><st1:place w:st="on"><font size=2 color=black face="Courier New"><span
  style='font-size:10.0pt'>Norman</span></font></st1:place></st1:City><o:p></o:p></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>-----Original Message-----<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>[<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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Andrew Hughes<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Sent: 18 December 2006 05:48<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>To: <st1:PersonName
w:st="on">PostGIS Users Discussion</st1:PersonName><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Subject: Re: [postgis-users] SpatialEJB3: (PostGIS and Hibernate)<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Thanks for the reply....<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>I have checked out the EJB3Spatial source from SVN: <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Now, I am presuming that this requires the JBoss IDE? since it doesn't<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre></blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>build with Eclipse.... and I can't see this anywhere in the tutorial.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>The JBoss plugins are in total 119Mb.... which is rather painful and <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>slow... it would be rather helpful if the binaries where available for<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre></blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>direct download.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>When I finally get this downloaded I'll hopefully make some good<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>progress :)<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Norman Barker wrote:<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Hi,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Glad you like the idea! PostGIS does all the work though J, and there<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

</blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>have been some good bug reports and questions from users as well.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>In conclusion;<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>There have been quite a few users of the EJB3 Geometry annotations, <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>but they are split between JBoss users, and pure Hibernate/Spring <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>users - it works well in either environment. Since it is possible to <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>mark a property of an entity as @Geometry and then have it persist<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

</blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>and<o:p></o:p></span></font></pre><pre><font size=2
color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>retrieve from PostGIS then the investigation was a success, and I am <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>using it in more projects (and once my current deadlines are out of <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>the way, I want to do some more to the codebase).<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>The incorporation of spatial functions into hql and ejb-ql is I <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>believe the next step, but quite a major undertaking. Certainly at<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

</blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>the<o:p></o:p></span></font></pre><pre><font size=2
color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>moment you could achieve the same functionality with <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>entitymanager.createNativeQuery for example (which I use to run<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

</blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>vacuum<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>analyze).<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Let me know if you have any questions, and do post more details about<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

</blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>your project, there have been some interesting use cases.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Thanks,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><st1:City
w:st="on"><st1:place w:st="on"><font size=2 color=black face="Courier New"><span
  style='font-size:10.0pt'>Norman</span></font></st1:place></st1:City><o:p></o:p></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

</blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>------------------------------------------------------------------------<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>*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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>[<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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>*Andrew Hughes<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>*Sent:* 12 December 2006 04:39<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>*To:* <st1:PersonName
w:st="on">PostGIS Users Discussion</st1:PersonName><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>*Subject:* [postgis-users] SpatialEJB3: (PostGIS and Hibernate)<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Hello All,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>I would like to use the SpatialEJB3 JBoss container for my JBoss Web <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Service.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>The SpatialEJB3 [ <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>seems to be exactly what I want, but I do have some concerns before I<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

</blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>invest some time in this.....<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    * Was there a conclusion to the SpatialEJB3 Investigation:<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      "/Spatial EJB3 is a quick investigation to see if it is<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

</blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>possible<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      to integrate the Java 5 annotation approach to mark a property<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      of an object as spatial and to delegate to the EJB3 persistence<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      model to store and retrieve this data./"?<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    * I require the PostGIS functions [such as<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      /intersects(geometry,geometry)/] to extract the data I am<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      looking for in my spatial database. I am unable to find a<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      reference to any java code that shows someone running anything<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      [like /select intersection(my_geom,geometry) from<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      locations_table where intersects(my_geom,geomtery);/ ] ?<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>For the people who are involved in the Spatial EJB3, I really like<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

</blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>the<o:p></o:p></span></font></pre><pre><font size=2
color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>idea... well-done!!!<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>--AH<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

</blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>------------------------------------------------------------------------<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite><pre wrap=""><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>_______________________________________________<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>postgis-users mailing list<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><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
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>      <o:p></o:p></span></font></pre></blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>    <o:p></o:p></span></font></pre></blockquote>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

</div>

</body>

</html>