postgis を使用して hibernate-spatial でプロジェクトをセットアップしようとしています。hibernate-spatial 4.0-M1 のチュートリアルに従って、依存関係の postgis-jdbc-1.5.3.jar が見つからないという問題に最初に遭遇しました。ここで誰かが提案したように、私はバージョン 1.5.2 を使用し、チュートリアルはコンパイルされました。
しかし、実行しようとするとエラーが発生しました。hibernate の debug-level を debug に設定し、次の問題に遭遇しました。
DEBUG SQL -
create table Event (
id int8 not null,
date timestamp,
location GEOMETRY,
title varchar(255),
primary key (id)
)
Hibernate:
create table Event (
id int8 not null,
date timestamp,
location GEOMETRY,
title varchar(255),
primary key (id)
)
ERROR SchemaExport - HHH000389: Unsuccessful: create table Event (id int8 not null, date timestamp, location GEOMETRY, title varchar(255), primary key (id))
ERROR SchemaExport - FEHLER: Typ ╗geometry½ existiert nicht Position: 94
エラーはドイツ語ですが、タイプ「ジオメトリ」が存在しないことを意味します。
create table ステートメントを使用して pgadmin で実行すると、find が機能するので、データベースが正しくセットアップされていると思います。
私のバージョン:
postgres - 9.0 64Bit
postgis - 2.0.1 64Bit
hibernate-spatial - 4.0-M1
hibernate - 4.0.0-Final
postgis-jdbc - 1.5.2
助けてくれてありがとう
ジェイビー