[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2680) Blobs not updated on Session.merge() for detached instances
Chris Bredesen (JIRA)
noreply at atlassian.com
Fri Mar 14 11:59:33 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29800 ]
Chris Bredesen commented on HHH-2680:
-------------------------------------
A workaround is to manually copy the BLOB data after the merge. Line 94 shows the bug:
session.merge(domain); // changes blob value to 44
Changing it to this avoids the problem:
Domain merged = (Domain) session.merge(domain);
merged.setBlob(Hibernate.createBlob(domain.getBlob().getBinaryStream()));
> Blobs not updated on Session.merge() for detached instances
> -----------------------------------------------------------
>
> Key: HHH-2680
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2680
> Project: Hibernate3
> Issue Type: Bug
> Components: core
> Affects Versions: 3.2.2, 3.2.4.sp1
> Environment: Windows XP Prof., Java 1.5_010, HSQLDB 1.8.0
> Reporter: Timo Thomas
> Attachments: BlobTest.zip
>
>
> Blob columns are not updated when a detached instance is saved at the session with merge(). See attached TestCase.
--
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list