Search code examples
hibernate-spatial

Is it possible to store a geometry datatype in mysql 5.6 by using Hibernate-Spatial API?


I would like to persist co-ordinates of polygon shape in Mysql5.6. I have seen tutorial for Postgresql. http://www.hibernatespatial.org/documentation/02-Tutorial/01-tutorial4/

But They haven't specified any sample code for mysql. So I feel fear to start with. Please suggest me, Is it possible to persist a single polygon shape in mysql database ?

Regards, ArunRaj.


Solution

  • Yes, We can store and retrieve the spatial datatype by hibernate spatial API. The tutorial Which i was mentioned is enough to store and retrieve the spatial data.