【发布时间】:2017-03-17 03:19:25
【问题描述】:
我的实体类
@Type(type = "org.hibernate.spatial.GeometryType")
private Point location;
我的spring boot配置
spring.jpa.database=POSTGRESQL
spring.datasource.platform=postgres
spring.jpa.show-sql=true
#spring.jpa.hibernate.ddl-auto=validate
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=****
spring.datasource.username=***
spring.datasource.password=**
spring.jpa.database-platform=org.hibernate.spatial.dialect.postgis.PostgisDialect
我在尝试保存时收到以下错误。
错误:列“位置”的类型是点,但表达式的类型是字节茶提示:您需要重写或强制转换表达式。位置:154
【问题讨论】:
标签: hibernate spring-boot postgis