[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4876?page=c...
]
Radosław Smogura commented on HHH-4876:
---------------------------------------
I think last comment from my side
1. @Type(type="image") doesn't resolve problem I still get 6 bytes oid
value, nor compatible=7.1
2. PrimitiveByteArrayBlobType is the way - (maybe some warning during entity deployment
about this type will be good)
Can I suggest to put in @deprecated note of PrimitiveByteArrayBlobType following
information "Left for backwards compatibility" - just to don't accidentally
delete of it in the future.
Please remember that @Lob byte[] creates oid type column in PgSQL.
Thanks for time and your help
Have a nice day!
Postgresql @Lob problem
-----------------------
Key: HHH-4876
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4876
Project: Hibernate Core
Issue Type: Bug
Components: annotations
Affects Versions: 3.5.0-Beta-4
Environment: Reproducable on Windows and Linux with Postgresql 8.4
Reporter: Radosław Smogura
Assignee: Strong Liu
The current version of Hibernate (Beta) wrongly reads PgSQL blob values (mapped from @Lob
byte[]). In general Hibernate properly creates OID type columns for storing blobs, but
when it read blob it reads oid value instead of LOB referenced by oid valu (so as the
output i get 6 bytes length table instead of 120kb table) This works fine in previous
release 3.3 / 3.2.
This was I saw is: previous version uses getBlob(), but 3.5 version uses getBytes() of
resultset class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira