File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/dialect Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,18 @@ public class PostgresDialect extends org.springframework.data.relational.core.di
58
58
"io.r2dbc.postgresql.codec.Polygon" ) //
59
59
.forEach (s -> ifClassPresent (s , simpleTypes ::add ));
60
60
61
+ // support the native JTS types supported by r2dbc-postgresql
62
+ Stream .of ("org.locationtech.jts.geom.Geometry" , //
63
+ "org.locationtech.jts.geom.Point" , //
64
+ "org.locationtech.jts.geom.MultiPoint" , //
65
+ "org.locationtech.jts.geom.LineString" , //
66
+ "org.locationtech.jts.geom.LinearRing" , //
67
+ "org.locationtech.jts.geom.MultiLineString" , //
68
+ "org.locationtech.jts.geom.Polygon" , //
69
+ "org.locationtech.jts.geom.MultiPolygon" , //
70
+ "org.locationtech.jts.geom.GeometryCollection" ) //
71
+ .forEach (s -> ifClassPresent (s , simpleTypes ::add ));
72
+
61
73
// conditional Postgres JSON support.
62
74
ifClassPresent ("io.r2dbc.postgresql.codec.Json" , simpleTypes ::add );
63
75
You can’t perform that action at this time.
0 commit comments