Example using Spring Boot with Hibernate Spatial. Based on the spring.io Accessing Data with JPA guide and the Hibernate Spatial tutorial. Be sure that PostGIS extension is installed in your target database! e.g. CREATE EXTENSION postgis;