[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2680) Blobs not updated on Session.merge() for detached instances
Suresh Vayugundla (JIRA)
noreply at atlassian.com
Thu Jun 10 19:41:59 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37393#action_37393 ]
Suresh Vayugundla commented on HHH-2680:
----------------------------------------
Hi Vladimir,
Thanks for the fix and details. I did not get it on how to use your fix in attached files. Could you please tell me more details on how to use. Below are the steps on how I am using:
Bean Class: (Person)
@Type(type="com.mycompany.hibernate.util.FixedBlobType")
@Basic(fetch=FetchType.LAZY)
private Blob file;
Action Class:
person.setFile(Hibernate.createBlob(new FileInputStream(attachFile)));
Dao class:
session.merge(person);
Am I missing anything? It is still not working for me.
Very much appreciated.
Thanks,
Suresh
> Blobs not updated on Session.merge() for detached instances
> -----------------------------------------------------------
>
> Key: HHH-2680
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2680
> Project: Hibernate Core
> 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: blobmerge.patch, BlobTest.zip, FileBlob.java, FixedBlobType.java
>
>
> 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