Questions tagged «hibernate-spatial»

1
Hibernate Spatial 4和PostGIS 2.0
我在整合这些技术时遇到了一些问题: 休眠空间4.0-M1 PostGIS 2.0.2(使用已编译的JDBC 2.0.2) 休眠4.1.1 具体错误是: Caused by: org.postgresql.util.PSQLException: Can't infer the SQL type to use for an instance of org.postgis.PGgeometry. Use setObject() with an explicit Types value to specify the type to use. 实体注释为: @NotNull @Column(columnDefinition="Geometry") @Type(type="org.hibernate.spatial.GeometryType") private Point geom; Point创建示例为: Location location = new Location(); WKTReader fromText …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.