2

我在 eclipselink 和 postresql 上遇到了麻烦

我使用 Glassfish 3.1.2 和他的 eclipselink 连接到具有持久性的 postgresql 数据库,在我的表中我有一个 postresql 大对象文件,在我的实体中使用 @lob 注释转换为字节数组。

当我尝试使用文件 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 上的相同代码运行良好。

我试图在谷歌或这里搜索,但我什么也没找到……有人可以帮助我吗?

4

0 回答 0