We have currently a rather convoluted way of using the Geometry fieldtype of PostGIS with JHipster (4.6, currently trying to upgrade to 4.14 - which is not going smoothly - will probably post another question for this)
- we added hibernate-spatial and liquibase-spatial to pom.xml
- then create the jdl Entities with String fields,
- import this with "jhipster import-jdl database.jdl"
- then change the entities to
@Column(name = "geometry", columnDefinition="Geometry") private Geometry geometry
- mvnw compile liquibase:diff
- add reference to the generated change logs in master.xml
- remove statements that drop spatial tables in the generated change logs
and i probably forgot some steps inbetween...
Q: Is there a better way to integrate postgis into jhipster ?
In github i only found that the jhipster team does not want to integrate support for GIS Extensions into JHipster/JDL because they are not available everywhere.