タグ付けされた質問 「hibernate-spatial」

1
Hibernate Spatial 4およびPostGIS 2.0
これらのテクノロジーを統合する際にいくつか問題があります。 Hibernate Spatial 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; そして、ポイント作成の例は次のとおりです。 Location location = new Location(); …
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.