Hibernate, Postgresql: Column “x” is of type oid but expression is of type byte

后端 未结 3 2005
南笙
南笙 2020-12-10 03:47

I have a strange problem regarding the hibernate mapping containing large objects (BLOB), when switching between different databases.

@Lob
private byte[] bin         


        
3条回答
  •  情歌与酒
    2020-12-10 04:31

    For me this may have meant once "revert your postgres jdbc version back down to 9.3-1101.jdbc4"

      
        org.postgresql
        postgresql
        9.4-1200-jdbc41
      
    

    worked as well. Newer than that failed...

提交回复
热议问题