spring-projects / spring-data-relational

Spring Data Relational. Home of Spring Data JDBC and Spring Data R2DBC.
https://spring.io/projects/spring-data-jdbc
Apache License 2.0
753 stars 345 forks source link

Consider JTS geometry types as simple types. #1713

Closed pete-setchell-kubra closed 8 months ago

pete-setchell-kubra commented 8 months ago

Here's a quick PR that makes spring-data-r2dbc work with the native JTS types useful for work with PostGIS. These are natively supported in the r2dbc-postgresql driver and should be picked up automatically now if the JTS dependencies are installed.

See: https://github.com/spring-projects/spring-data-relational/issues/1711

I've tested this locally and found that it removes the need for at custom postgres dialect. No additional dependency on JTS is necessary.

mp911de commented 8 months ago

Thank you for your contribution. That's merged, polished, and backported now.

pete-setchell-kubra commented 8 months ago

Thanks for your work as maintainer! Great pointers and fast turnaround!