[postgis-devel] postgis and hibernate
Chris Hodgson
chodgson at refractions.net
Tue Mar 18 09:37:12 PDT 2008
I would hope that hibernatespatial solves your problem best now.
However, as an alternative, I presented the method I used (prior to the
release of hibernatespatial) at foss4g2007:
http://www.foss4g2007.org/presentations/view.php?abstract_id=118
It was a straightforward adaptation of one of the the postgis hibernate
datatypes that is available in the postgis SVN, to feed directly into
JTS geometries instead of native "postgis" Java objects.
Chris
Dave Potts wrote:
> Whats the recommed way of using hibernate with postgis?
>
> Is it to use Norman Bakers postgis data type or would I be better off
> having a look at the Hibernate spatial project at
> http://www.hibernatespatial.org.
>
> I would perfer to juse Normas method because the source is avaible and
> does, require the jts library, although I am having some slight problems
> with the setParameter method.
>
>
> Its possible for me to query objects that already exist in the database,
> possible for me load items from the database. But if I use the
> setParamter request to copy a valid geometry object in, I get an
> PSQLException quoting a parse error suggesting an invalid geoemtry and
> an X000 error from postgres.
>
> Dave.
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
More information about the postgis-devel
mailing list