You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using complex types requires either a converter in the dialect to be registered or native driver support along with a simple type registration in the dialect.
Currently, r2dbc-postgres does not support yet geo types, you might want to chime in the discussion at pgjdbc/r2dbc-postgresql#282
I have following stack:
Spring boot: 2.3.0.RELEASE
java: 11
Postgresql 12 backend
Pom dependencies :
io.r2dbc:r2dbc-postgresql
com.vividsolutions:jts:1.13
org.hibernate:hibernate-spatial:5.4.17.Final
My domain class:
In application.properties, I have:
spring.jpa.properties.hibernate.dialect=org.hibernate.spatial.dialect.postgis.PostgisDialect
In postgresql, I insert data as Point, Linestring, Multilinestring, for example:
My repository is defined as:
With this setup, when I try to read records as:
I get error as:
I try to use
@Id
,@Column
annotation from org.springframework.data too, but same error.Blogs, stackoverflow etc says this is straightforward mapping and should work. But I have just not been able to make it work.
Is there an issue in r2dbc?
The text was updated successfully, but these errors were encountered: