我正在尝试使用hibernate空间。我已经完成了以下配置...
hibernate.version 5.2.2最终版本
MySQL 5.7
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-spatial</artifactId>
<version>5.2.10.Final</version>
</dependency>
<dependency>
<groupId>com.vividsolutions</groupId>
<artifactId>jts</artifactId>
<version>1.13</version>
</dependency>hibernate.dialect =org.hibernate.spatial.dialect.mysql.MySQLSpatialDialect
@Column(name = "GeoLocation", columnDefinition = "Point") public Point getGeoLocation() {
return geoLocation;
}但它给了我错误:-
org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [GeoLocation] in table [osamdb.customerlocations]; found [geometry (Types#BINARY)], but expecting [point (Types#ARRAY)]
我错过了什么??
发布于 2017-05-19 19:46:14
弄明白了!!
已删除columnDefinition..然后一切都很好..
https://stackoverflow.com/questions/44068177
复制相似问题