What sql-type should I map my Point on?

2 messages Options
Embed this post
Permalink
Sebastien ARBOGAST

What sql-type should I map my Point on?

Reply Threaded More More options
Print post
Permalink
I've gone through the tutorial
(http://www.hibernatespatial.org/tutorial.html) but in the Hibernate
mapping file, there is no sql-type for the LOC column. What should it
be (knowing that I'm using PostGIS for data storage)?

--
Sébastien Arbogast

http://www.sebastien-arbogast.com
_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users
Karel Maesen

Re: What sql-type should I map my Point on?

Reply Threaded More More options
Print post
Permalink
If you are using PostGIS you don't normally need an sql-type  
attribute. If you want to add it anyway, it should be sql-
type="geometry". If your database is complaining about not knowing  
the datatype, then probably you postgresql database isn't spatially  
enabled. Check the Postgis documentation on how to do that.

Regards,

Karel


On 16 Dec 2007, at 14:44, Sebastien ARBOGAST wrote:

> I've gone through the tutorial
> (http://www.hibernatespatial.org/tutorial.html) but in the Hibernate
> mapping file, there is no sql-type for the LOC column. What should it
> be (knowing that I'm using PostGIS for data storage)?
>
> --
> Sébastien Arbogast
>
> http://www.sebastien-arbogast.com
> _______________________________________________
> hibernatespatial-users mailing list
> [hidden email]
> http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/ 
> hibernatespatial-users

_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users