Hibernate Spatial with MySQL and Spring Boot

I am developing an app that will store location data from map to the MySQL database.I came across MySQL spatial data types which can be useful to perform some operations on the location data. I wanted to integrate hibernate spatial with spring boot but I am unable to do so.I have tried different variations of code but every time this is failing.

I would like to see one complete example for MySQL spatial with following tools : Spring Boot (latest version with latest hibernate) MySQL.

also which dependency for hibernate spatial should I use and what to mention in the properties file and how the code should be?

Did found other solutions but those are outdated and not working when implemented.


Answer #1:

Have a look at https://www.baeldung.com/hibernate-spatial. A recently updated tutorial on Hibernate Spatial with MySQL

Answered By: Karel Maesen
The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

# More Articles