Two BLOBs (OID) in table?

From: Stanislav Mironov <smironov(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Two BLOBs (OID) in table?
Date: 2008-04-13 13:29:53
Message-ID: 48020AD1.9010608@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello All!

I created entity with 2 BLOB columns in one table: one for image and one
for thumbnail. Storing image and getting it back in another session
works pretty good.

But when I set thumbnail BLOB successfully, the original BLOB becomes
empty. Retrieved entity returns length 0 for image BLOB.

@Lob private Blob image;
@Lob private Blob thumbnail;

Hibernate 3.2.6, Annotations 3.3.0, PostgreSQL 8.3.1, JDBC 8.3-603.
The problem is 100% reproducible. Please, help?

--
Stanislav Mironov

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2008-04-13 13:50:03 Re: Two BLOBs (OID) in table?
Previous Message Toru SHIMOGAKI 2008-04-12 00:27:07 Re: Patch to add a socketTimeout property.