-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate reporting Blob field as dirty when only reading
PostPosted: Tue Aug 30, 2005 9:49 am 
Beginner
Beginner

Joined: Thu Apr 21, 2005 12:15 pm
Posts: 34
I have a blob field defined as part of a Hibernate Config file, it is one of four properties:
<property name="handlerBlob" type="blob" insert="true" optimistic-lock="true" not-null="false" update="true" unique="false" lazy="false">
<column name="SERIALIZED_HANDLER" not-null="false" />
</property>

The blob field is implemented using the fix described here:
http://hansonchar.blogspot.com/2005/06/ ... te-in.html

We do a hibernate.clear() before accessing Hibernate objects and a hibernate.flush() at the end of the operation. After I retrieve records from the database represented containing this field, when I do the flush() hibernate always marks the field as dirty and updates the versioning field.
Why is it doing this ?

The only way I can prevent this from happening is by setting the update attribute to false, but it needs to be true.


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

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.