2

eclipselink と postresql に問題があります

私は Glassfish 3.1.2 と彼の eclipselink を使用して、postgresql データベースに永続的に接続します。私のテーブルには、私のエンティティで @lob 注釈付きの bytearray に変換される postresql ラージ オブジェクト ファイルがあります。

ファイル postgresql で新しいレコードを保存しようとすると、次のように言います。

Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): 
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: ERROR: column "attoid" is of type oid but expression is of type bytea
  Hint: You will need to rewrite or cast the expression.

Hibernate で同じコードがうまく機能します。

Google またはここで検索しようとしましたが、何も見つかりませんでした...誰か助けてくれませんか?

4

0 に答える 0