我正在尝试使用休眠空间。我做了以下配置......
hibernate.version 5.2.2.Final
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)]
我错过了什么??