Hibernate, Postgresql: Column “x” is of type oid but expression is of type byte
问题 I have a strange problem regarding the hibernate mapping containing large objects (BLOB), when switching between different databases. @Lob private byte[] binaryData; The field above creates a byte array field in MySQL and in Oracle, however in PostreSQL it creates a field of type oid. Now when I try to access this field it works fine in the other databases, but in PostgreSQL it fails with the following error Column "binaryData" is of type oid but expression is of type bytea. So I tried to