-->
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.  [ 3 posts ] 
Author Message
 Post subject: Blob fails with merge on Hibernate 3
PostPosted: Thu May 12, 2005 8:11 pm 
Newbie

Joined: Tue Mar 01, 2005 6:58 pm
Posts: 7
In our application, using blobs works just fine when we use save(). However, when we use merge(), we get a null on nult null field exception. After tracing through Hibernate, I discovered that org.hibernate.type.Blob.replace() does not copy the blob.

If I change the replace method to return 'original' instead of 'target' (target is always null) it seams to work just fine.

Should I log this as a bug in Jira?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 13, 2005 4:57 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
As per the EJB3 spec
"Fields or properties of type java.sql.Blob and java.sql.Clob are ignored by the merge operation."
But we should not throw an y exception and we should explicit it in the doc if not yet. Post to JIRA with a detailed explicatation of you problem.
Thanks

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 13, 2005 2:59 pm 
Newbie

Joined: Tue Mar 01, 2005 6:58 pm
Posts: 7
That's too bad. Fortunately, though, I think I can work around this.

Thanks for the feedback.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.