Michael Baranov wrote:
I have solved the problem. Just in case someone gets interested:
1) oid is the correct type for blob object. It's just a reference to it.
2) use jdbc driver newer than 8.0, it has a bug in it that causes data loss in blob
Michael.
What was the actual problem? I'm using PosgreSQL 8.4, byte[] data type in Java, but I cannot persist my class. What can be wrong? Should I use java.Sql.Blob in my Java code? Or use additional annotations besides @Lob?
Here's my problem:
https://forum.hibernate.org/viewtopic.php?f=1&t=1005584