-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: session.merge does not save blob
PostPosted: Wed Oct 29, 2008 2:50 pm 
Beginner
Beginner

Joined: Tue Aug 01, 2006 4:57 am
Posts: 25
Hi

I am using Java 1.4, Hibernate 3. Until now i have used session.saveOrUpdate for save operation. Due to some problems in saving detached object, i started using session.merge().

Now there is new issue that i came across recently, for example, i have

Code:
ObjA --> list of documents (Document|name, desc, blob|)


when i try to save this using session.merge, the blob does not get created.

For the Document object, i am setting its blob something like this

Code:
doc.setBlob(Hibernate.createBlob(file.getInputStream()));


How do I fix this issue? Has anyone faced a similar issue before, how was it fixed? Pls help


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2008 5:26 pm 
Beginner
Beginner

Joined: Tue Aug 01, 2006 4:57 am
Posts: 25
Guys!
Any help on this pls


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.