Using materialized blobs with Postgresql causes error

Description

I have entity with byte[] property annotated as @Lob and lazy fetch type, when table is createad the created column is of type oid, but when the column is read in application, the Hibernate reads the OID value instead of bytes under given oid. It's behavior like to read / write bytea.

If i remember well, auto-creating table with Hibernate creates oid column.

The proper behavior for dealing in PostgreSQL (and this behavior is in Hibernate 3.4) is to use oids.

Environment

Hibernate 3.5-b2, Glassfish v3 promoted build 74, PostgreSQL 8.3.7

Status

Assignee

Gail Badner

Reporter

rsmoguraN

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

3.5.0-Beta-2
3.6.0

Priority

Critical