-->
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: @Lob column not updated?
PostPosted: Mon May 25, 2009 8:17 am 
Newbie

Joined: Mon May 25, 2009 8:13 am
Posts: 2
Hi,

I'm using hibernate (JPA) with spring. I have a field of type Blob that is marked with an @Lob annotation.

This field causes a OID (postgresql) column to be created, but even though the field is set before peristing (insert/update) the column is always null.

I am creating the Blob instance with "Hibernate.createBlob(inputStream)".

Any ideas on why a Blob column is never updated? Any good ideas on how to diagnose?

Thanks,

-dennis


Top
 Profile  
 
 Post subject: Re: @Lob column not updated?
PostPosted: Tue May 26, 2009 5:25 am 
Regular
Regular

Joined: Thu Apr 14, 2005 10:39 am
Posts: 115
Hi, this is an bug of postgres,
according to "Hibernate - Ein Praxisbuch für Entwickler" 2.6.11 S.134 ff -- German book.

I use
Quote:
@Type(type = "org.hibernate.type.BinaryType")
on my byte-array.

Otherwise you have to introduce Rules for Delete/Update to tell postgres what to do.

Greetings Michael


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.